HttpExchange httpExchange = this.protocolHandler.new HttpExchange();
httpExchange.setRequestState(MessageState.READY);
httpExchange.setResponseState(MessageState.READY);
this.connContext.setAttribute(HttpAsyncServiceHandler.HTTP_EXCHANGE, httpExchange);
HttpException httpex = new HttpException();
this.protocolHandler.exception(this.conn, httpex);
Assert.assertEquals(MessageState.READY, httpExchange.getRequestState());
Assert.assertEquals(MessageState.BODY_STREAM, httpExchange.getResponseState());
Assert.assertNotNull(httpExchange.getResponseProducer());