tm = (TextMessage) consumer.receive(3000);
assertEquals("msg4", tm.getText());
_logger.info("Received redelivery of three messages. Acknowledging last message");
tm.acknowledge();
_logger.info("Calling acknowledge with no outstanding messages");
// all acked so no messages to be delivered
consumerSession.recover();