httpClient.setProxySecuredHost("localhost");
httpClient.setProxySecuredPort(proxy.getLocalPort());
httpClient.setProxyUser("test");
httpClient.setProxyPassword("test");
IHttpResponse response = httpClient.call(new GetRequest("https://localhost:" + server.getLocalPort() + "/"));
String body = response.getBlockingBody().readString();
Assert.assertEquals(200, response.getStatus());
Assert.assertTrue(body.indexOf("it works") != -1);