for (int i = 0; i < numMessages; i++)
{
HornetQBuffer horn1 = buffers.get(i);
HornetQBuffer horn2 = msg.get(i).getMessage().getBodyBuffer();
horn1.resetReaderIndex();
horn2.resetReaderIndex();
for (int j = 0; j < horn1.writerIndex(); j++)
{
Assert.assertEquals(horn1.readByte(), horn2.readByte());
}
}