final int maxConn = 2;
// We build a client with 2 max active // connections, and 2 max per route.
this.connMgr.setMaxTotal(maxConn);
this.connMgr.setDefaultMaxPerRoute(maxConn);
final UriHttpAsyncRequestHandlerMapper registry = new UriHttpAsyncRequestHandlerMapper();
registry.register("*", new BasicAsyncRequestHandler(new SimpleService()));
final HttpHost target = start(registry, null);
// Bottom of the pool : a *keep alive* connection to Route 1.
final HttpContext context1 = new BasicHttpContext();