final Log log = Mockito.mock(Log.class);
final CPoolEntry poolentry = new CPoolEntry(log, "some-id", route, conn, -1, TimeUnit.MILLISECONDS);
callaback.completed(poolentry);
Assert.assertTrue(future.isDone());
final NHttpClientConnection managedConn = future.get();
Assert.assertTrue(Proxy.isProxyClass(managedConn.getClass()));
Mockito.verify(connCallback).completed(Mockito.<NHttpClientConnection>any());
Mockito.when(conn.isOpen()).thenReturn(Boolean.TRUE);
connman.releaseConnection(managedConn, "new state", 5, TimeUnit.SECONDS);