HttpExchange httpExchange = this.protocolHandler.new HttpExchange();
HttpRequest request = new BasicHttpRequest("GET", "/");
httpExchange.setRequest(request);
BasicHttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, 200, "OK");
httpExchange.setResponse(response);
httpExchange.invalidate();
httpExchange.setHandler(this.exchangeHandler);
this.connContext.setAttribute(HttpAsyncClientProtocolHandler.HTTP_EXCHANGE, httpExchange);
Mockito.when(this.decoder.isCompleted()).thenReturn(true);
this.protocolHandler.inputReady(this.conn, this.decoder);