HttpRequestLine requestLine = new HttpRequestLine();
requestLine.setMethod(KnownHttpMethod.GET);
requestLine.setUri(new HttpUri("http://www.deano.com"));
HttpRequest req = new HttpRequest();
req.setRequestLine(requestLine);
<BUG>byte[] array = parser.marshalToBytes(req);
</BUG>
ByteBuffer buffer = ByteBuffer.wrap(array);
dataListener.incomingData(mockTcpChannel, ByteBuffer.allocate(0));
dataListener.incomingData(mockTcpChannel, buffer);

HttpRequestLine requestLine = new HttpRequestLine();
requestLine.setMethod(KnownHttpMethod.GET);
requestLine.setUri(new HttpUri("http://www.deano.com"));
HttpRequest req = new HttpRequest();
req.setRequestLine(requestLine);
byte[] array = unwrap(parser.marshalToByteBuffer(req));
ByteBuffer buffer = ByteBuffer.wrap(array);
dataListener.incomingData(mockTcpChannel, ByteBuffer.allocate(0));
dataListener.incomingData(mockTcpChannel, buffer);
