HttpResponseHeader responseHeader = new HttpResponseHeader(200);
responseHeader.setProtocolVersionSilence("0.9");
responseHeader.setSimpleResponse(true);
AbstractBodyParser bodyParser = new SimpleMessageBodyParser((AbstractHttpConnection) exchange.getConnection(), responseHeader);
HttpResponse response = new HttpResponse(responseHeader);
response.setBodyDataSourceSilence(bodyParser.getDataSource());
ComposedByteBuffer rawData = new ComposedByteBuffer();
rawData.append(new ByteBuffer[] { ByteBuffer.wrap("test123456".getBytes()) });
bodyParser.parse(rawData);
exchange.send(response);
bodyParser.onDisconnect();
}