}
@Test(expected=ExecutionException.class)
public void testCircularRedirect() throws Exception {
final UriHttpAsyncRequestHandlerMapper registry = new UriHttpAsyncRequestHandlerMapper();
registry.register("*", new BasicAsyncRequestHandler(new CircularRedirectService()));
final HttpHost target = start(registry, null);
final RequestConfig config = RequestConfig.custom()
.setCircularRedirectsAllowed(false)
.setRelativeRedirectsAllowed(true)