// Test with the in-JVM proxy configured
HttpProxyConfiguration localProxy = new HttpProxyConfiguration("127.0.0.1", inJvmProxyPort);
ClientHttpRequestFactory requestFactory = new RestUtil().createRequestFactory(localProxy, CCNG_API_SSL);
restTemplate.setRequestFactory(requestFactory);
restTemplate.execute(CCNG_API_URL + "/info", HttpMethod.GET, null, null);
// then executes fine, and the jetty proxy indeed received one request
assertEquals("expected network calls to make it through the inJvmProxy.", 1, nbInJvmProxyRcvReqs.get());
nbInJvmProxyRcvReqs.set(0); //reset for next test