@Before
public void setUp()
{
messageBufferProtocol = new MessageBufferProtocol();
messageBufferProtocol.setLengthFieldPrepender(new LengthFieldPrepender(2, false));
messageBufferProtocol.setMessageBufferEventDecoder(new MessageBufferEventDecoder());
messageBufferProtocol.setMessageBufferEventEncoder(new MessageBufferEventEncoder());
frameDecoder = messageBufferProtocol.createLengthBasedFrameDecoder();
}