final HttpRoute route = new HttpRoute(target, null, false);
final HttpContext context = new BasicHttpContext();
final HttpClientConnection conn = getConnection(mgr, route);
mgr.connect(conn, route, 0, context);
mgr.routeComplete(conn, route, context);
Assert.assertEquals(1, mgr.getTotalStats().getLeased());
Assert.assertEquals(1, mgr.getStats(route).getLeased());
// Release, let remain idle for forever
mgr.releaseConnection(conn, null, -1, TimeUnit.MILLISECONDS);