title: Wiremock proxy stub issue
body: <p>Wiremock proxy stub runs on port 1234 with host <a href="http://example.com" rel="nofollow noreferrer">http://example.com</a>, but httpURLConnection.getResponseCode()  gives connection refused error.</p>
  
  <pre><code>wireMockServer.stubFor(get(urlMatching(".*"))              
                  .willReturn(aResponse().proxiedFrom("http://example.com:1234")));
  
  
  
  
  
  ConnectionFactory conFac = new ConnectionFactory("http://example.com", 1234);
     HttpURLConnection httpURLConnection = conFac.getHttpURLConnection(new URL(new URI("http", null, "http://example.com", 1234, null, null, null).toString()));
     httpURLConnection.getResponseCode();
  </code></pre>