TestDecoderOutput out = new TestDecoderOutput();
ByteBuffer in = ByteBuffer.allocate(16);
// Test one decode and one output
in.putString("ABC\r\n", encoder);
in.flip();
decoder.decode(session, in, out);
Assert.assertEquals(1, out.getMessageQueue().size());
Assert.assertEquals("ABC", out.getMessageQueue().poll());
// Test two decode and one output