Message m = consumer.receive(500l);
assertNull("Unexpected message received", m);
Number channelId = getFirstTransactedChannelId(mBean, 2);
mBean.commitTransactions(channelId.intValue());
for (int i = 0; i < numberOfMessages; i++)
{
m = consumer.receive(1000l);
assertNotNull("Message " + i + " is not received", m);