title: Connection refused when using wiremock
body: <p>I have this piece of code in a Junit, where I clearly set the port to 8888</p>
  
  <pre><code>when(clientUtils.getLinkUrl(eq(HOSTELS_MICROSERVICE.name()), eq(HOSTELS_MICROSERVICE.name()), anyMap()))
                  .thenReturn("http://localhost:8888/HOSTELS/HOSTELSMethods");
  
  stubFor(com.github.tomakehurst.wiremock.client.WireMock.get("/HOSTELS/HOSTELS_LIST").willReturn(
                  aResponse().withStatus(200)
                          .withHeader("Content-Type", APPLICATION_JSON_VALUE)
                          .withBody(ResourceUtils.getResourceFileAsString ("__files/HOSTELS.json"))));
  </code></pre>
  
  <p>but when I run the test I got this error on this line:</p>
  
  <pre><code>stubFor(com.github.tomakehurst.wiremock.client.WireMock.get("/HOSTELS/HOSTELS_LIST").willReturn(..
  </code></pre>
  
  <p>and the error:</p>
  
  <pre><code>wiremock.org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
  </code></pre>