// sync to make sure that messages are received on the broker
// before we rollback via JMX
((AMQSession<?, ?>) producerSession).sync();
Number channelId = getFirstTransactedChannelId(mBean, 2);
mBean.rollbackTransactions(channelId.intValue());
Message m = consumer.receive(1000l);
assertNull("Unexpected message received: " + String.valueOf(m), m);
producerSession.commit();