package uk.co.automatictester.wiremock.maven.plugin;

import org.testng.annotations.Test;
import uk.co.automatictester.wiremock.maven.plugin.server.WireMockServer;

public class WireMockServerTest {

    @Test
    public void testRun() {
        WireMockServer wireMock = WireMockServer.getInstance();
        wireMock.run();
        wireMock.stop();
        wireMock.run();
        wireMock.stop();
    }
}

@@ -307,57 +307,49 @@
     
-wireMock.run();%0A        wireMock.stop();%0A
+for (int i = 0; i %3C 2; i++) %7B%0A   
         
 wire
@@ -336,32 +336,33 @@
 +) %7B%0A           
+ 
 wireMock.run();%0A
@@ -357,24 +357,28 @@
 Mock.run();%0A
+    
         wire
@@ -386,20 +386,30 @@
 ock.stop();%0A
+        %7D%0A
     %7D%0A%7D%0A

Remove repetition