Message msg = liveSubscriber.receive(POSITIVE_RECEIVE_TIMEOUT);
assertNotNull ("Message should have been received", msg);
assertEquals ("testDurableWithInvalidSelector2", ((TextMessage) msg).getText());
assertNull("Should not receive subsequent message", liveSubscriber.receive(200));
liveSubscriber.close();
session.unsubscribe("testDurableWithInvalidSelectorSub");
}
/**
* This tests the fix for QPID-1085
* Creates a durable subscriber with an invalid destination, checks that the