// anything between 2 and 100
int nr1 = RandomUtil.randomPositiveInt() % 98 + 2;
for (int i = 0; i < nr1; i++)
{
trans.increment(true);
}
Assert.assertEquals(nr1, trans.getNumberOfMessages());
HornetQBuffer buffer = HornetQBuffers.fixedBuffer(trans.getEncodeSize());