Mockito.verify(this.connPool).lease(
Mockito.eq(host), Mockito.isNull(), argCaptor.capture());
ConnRequestCallback connRequestCallback = (ConnRequestCallback) argCaptor.getValue();
BasicNIOPoolEntry entry = new BasicNIOPoolEntry("id", host, this.conn);
connRequestCallback.completed(entry);
HttpAsyncClientExchangeHandlerImpl exchangeHandler = (HttpAsyncClientExchangeHandlerImpl) this.connContext.getAttribute(
HttpAsyncClientProtocolHandler.HTTP_HANDLER);
Assert.assertNotNull(exchangeHandler);
Mockito.verify(this.conn).requestOutput();