@Before
public void setUp()
{
amf3Protocol = new AMF3Protocol();
frameDecoder = amf3Protocol.createLengthBasedFrameDecoder();
amf3Protocol.setEventDecoder(new EventDecoder());
amf3Protocol.setAmf3ToEventSourceDecoder(new AMF3ToEventSourceDecoder());
amf3Protocol.setEventSourceToAMF3Encoder(new EventSourceToAMF3Encoder());
amf3Protocol.setEventEncoder(new EventEncoder());
amf3Protocol
.setLengthFieldPrepender(new LengthFieldPrepender(2, false));