public class HornetQFrameDecoderTest extends TestCase{
public void testDecoding() {
final ChannelBuffer buffer = ChannelBuffers.copiedBuffer("TestBytes", CharsetUtil.US_ASCII);
DecoderEmbedder<ChannelBuffer> decoder = new DecoderEmbedder<ChannelBuffer>(new HornetQFrameDecoder(new BufferDecoder() {
public int isReadyToHandle(HornetQBuffer buffer) {
if (buffer.readableBytes() > 2) {
return 2;
}