@Override
public boolean doMessageReceived(ChannelHandlerContext context, MessageEvent event, Channel channel) throws Exception {
Object msg = event.getMessage();
if(msg instanceof IcapRequest) {
IcapRequest request = (IcapRequest)event.getMessage();
DataMockery.assertCreateREQMODWithPreview(request);
ChannelBuffer requestBodyBuffer = request.getHttpRequest().getContent();
String body = requestBodyBuffer.toString(Charset.forName("ASCII"));
StringBuilder builder = new StringBuilder();
builder.append("This is data that was returned by an origin server.");
assertEquals("The body content was wrong",builder.toString(),body);
channel.write(DataMockery.createREQMODWithPreviewAnnouncement204ResponseIcapMessage());