}
}
@Test(groups = { "standalone", "default_provider" })
public void testBothProxies() throws IOException, ExecutionException, TimeoutException, InterruptedException {
AsyncHttpClientConfig cfg = new AsyncHttpClientConfig.Builder().setProxyServer(new ProxyServer("127.0.0.1", port1 - 1)).build();
AsyncHttpClient client = getAsyncHttpClient(cfg);
try {
String target = "http://127.0.0.1:1234/";
Future<Response> f = client.prepareGet(target).setProxyServer(new ProxyServer("127.0.0.1", port1)).execute();
Response resp = f.get(3, TimeUnit.SECONDS);