Object actual = osis.readObject();
assertEquals( expected, actual );
// Test ProtocolDecoder
ProtocolDecoder decoder = new ObjectSerializationDecoder();
MockProtocolDecoderOutput decoderOut = new MockProtocolDecoderOutput();
IoSession session = new MockIoSession();
decoder.decode( session, in.duplicate(), decoderOut );
Assert.assertEquals( expected, decoderOut.result.get( 0 ) );
Assert.assertEquals( 1, decoderOut.result.size() );
}