Assert.assertNull("null-message", msg);
/* rollback session and receive message again */
s_rec.rollback();
/* AGAIN:Receive the 5 messages in the queue */
for(int i = 0; i < num; i++) {
ObjectMessage omsg = (ObjectMessage)qr.receiveNoWait();
Assert.assertNotNull(i + ":message-redeliver", omsg);
Integer I = (Integer)omsg.getObject();
Assert.assertNotNull(i + ":integer-redeliver", I);
Assert.assertEquals("Integer-Value-redeliver", i, I.intValue());
Assert.assertTrue(i + ":redelivered", omsg.getJMSRedelivered());