// And with the actual one used by RestUtil, without a proxy configured
assertNetworkCallFails(restTemplate, new RestUtil().createRequestFactory(null, false));
// 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