assertEquals(expected, actual);
// Test ProtocolDecoder
ProtocolDecoder decoder = new ObjectSerializationDecoder();
ProtocolCodecSession session = new ProtocolCodecSession();
ProtocolDecoderOutput decoderOut = session.getDecoderOutput();
decoder.decode(session, in.duplicate(), decoderOut);
Assert.assertEquals(1, session.getDecoderOutputQueue().size());
Assert.assertEquals(expected, session.getDecoderOutputQueue().poll());
}