final State state = new HttpAsyncRequestExecutor.State();
final HttpRequest request = new BasicHttpRequest("GET", "/");
state.setRequest(request);
final BasicHttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, 200, "OK");
state.setResponse(response);
state.invalidate();
this.connContext.setAttribute(HttpAsyncRequestExecutor.HTTP_EXCHANGE_STATE, state);
this.connContext.setAttribute(HttpAsyncRequestExecutor.HTTP_HANDLER, this.exchangeHandler);
Mockito.when(this.decoder.isCompleted()).thenReturn(Boolean.TRUE);
this.protocolHandler.inputReady(this.conn, this.decoder);