public void testOrdinaryFragmentation() throws Exception
{
final DecoderEmbedder<ChannelBuffer> decoder = new DecoderEmbedder<ChannelBuffer>(new HornetQFrameDecoder2());
ChannelBuffer src = ChannelBuffers.buffer(HornetQFrameDecoder2Test.MSG_CNT * (HornetQFrameDecoder2Test.MSG_LEN + 4));
while (src.writerIndex() < src.capacity())
{
src.writeInt(HornetQFrameDecoder2Test.MSG_LEN);
byte[] data = new byte[HornetQFrameDecoder2Test.MSG_LEN];
HornetQFrameDecoder2Test.rand.nextBytes(data);
src.writeBytes(data);