assertEquals("The body content was wrong",builder.toString(),body);
embedder.offer(DataMockery.createRESPMODWithGetRequestAndPreviewIcapChunkFullMessageChunk());
embedder.offer(DataMockery.createRESPMODWithGetRequestAndPreviewChunkTrailer());
IcapRequest request1 = (IcapRequest)embedder.poll();
buffer = request1.getHttpResponse().getContent();
Assert.assertEquals("wrong reader index",0,buffer.readerIndex());
String body1 = destructiveRead(buffer);
assertEquals("The body content after another chunk was sent is wrong","This is data that was returned by an origin server.And this the second chunk which contains more information.",body1);
Object object = embedder.peek();
assertNull("still something there",object);
}