state.setRequestState(MessageState.COMPLETED);
state.setResponseState(MessageState.COMPLETED);
this.connContext.setAttribute(HttpAsyncRequestExecutor.HTTP_EXCHANGE_STATE, state);
this.connContext.setAttribute(HttpAsyncRequestExecutor.HTTP_HANDLER, this.exchangeHandler);
HttpException httpex = new HttpException();
this.protocolHandler.exception(this.conn, httpex);
Mockito.verify(this.exchangeHandler).failed(httpex);
Mockito.verify(this.conn).shutdown();
}