{
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));
playerStats = new PlayerStats(10, 11.1f, 12.2f, 10);
}