}
@Test
public void testCrossSiteRedirect() throws Exception {
final UriHttpAsyncRequestHandlerMapper registry = new UriHttpAsyncRequestHandlerMapper();
registry.register("/random/*", new BasicAsyncRequestHandler(
new RandomHandler()));
final HttpHost redirectTarget = start(registry, null);
final UriHttpAsyncRequestHandlerMapper registry2 = new UriHttpAsyncRequestHandlerMapper();
registry2.register("/redirect/*", new BasicAsyncRequestHandler(
new CrossSiteRedirectService(redirectTarget)));
final HttpServerNio secondServer = new HttpServerNio(this.serverReactorConfig,
createServerConnectionFactory(this.serverConnectionConfig));
secondServer.setExceptionHandler(new SimpleIOReactorExceptionHandler());
final HttpAsyncService serviceHandler = new HttpAsyncService(