mgr.connect(conn, route.getTargetHost(), route.getLocalAddress(), 0, 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);
// Released, still active.
Assert.assertEquals(1, mgr.getTotalStats().getAvailable());
Assert.assertEquals(1, mgr.getStats(route).getAvailable());