public class DemuxingProtocolDecoderBugTest
{
private static void doTest(IoSession session) throws Exception
{
ProtocolDecoderOutput mock = EasyMock.createMock(ProtocolDecoderOutput.class);
mock.write(Character.valueOf('A'));
mock.write(Character.valueOf('B'));
mock.write(Integer.valueOf(1));
mock.write(Integer.valueOf(2));
mock.write(Character.valueOf('C'));
EasyMock.replay(mock);
IoBuffer buffer = IoBuffer.allocate(1000);
buffer.putString("AB12C", Charset.defaultCharset().newEncoder());
buffer.flip();