ExchangeClient exchangeClient = new ExchangeClient(createTestingBlockEncodingManager(),
new DataSize(1, Unit.BYTE),
maxResponseSize,
1,
new Duration(1, TimeUnit.MINUTES),
new TestingHttpClient(processor, newCachedThreadPool(daemonThreadsNamed("test-%s"))),
executor);
URI location = URI.create("http://localhost:8080");
exchangeClient.addLocation(location);
exchangeClient.noMoreLocations();