@Test
public void testDurableSubscription() throws Exception {
// Connect and ensure that a message can be received
String topic = "jmsmanager.test.durable";
JMSManager jmsMgr = new JMSManager(properties, "clientId1");
jmsMgr.listenDurable(topic, this);
jmsMgr.send(topic, messageText);
checkMessage(topic, DestinationType.Topic, messageText);
// Check for listener durability
String message2 = "Message Number 2";