SimpleProtocolDecoderOutput decoderOut = new SimpleProtocolDecoderOutput();
ProtocolDecoderOutputImpl decoderOut = new ProtocolDecoderOutputImpl();
    public void testMessageCodec() throws Exception    {        SimpleProtocolEncoderOutput encoderOut = new SimpleProtocolEncoderOutput()        {            protected WriteFuture doFlush( ByteBuffer buf )            {                return null;            }                    };        encoder.encode( null, message, encoderOut );        ByteBuffer buf = ( ByteBuffer ) encoderOut.getBufferQueue().pop();        buf.mark();        Assert.assertTrue( decoder.decodable( null, buf ) == MessageDecoder.OK );        buf.reset();                SimpleProtocolDecoderOutput decoderOut = new SimpleProtocolDecoderOutput();        decoder.decode( null, buf, decoderOut );                Assert.assertTrue( compare( message,                                    ( BaseMessage ) decoderOut.getMessageQueue().pop() ) );    }