final Message sentMessage = session1.createTextMessage("hello");
sentMessage.setStringProperty("Selector", "nonMatch");
publisher.send(sentMessage);
// Try to consume non-message, expect this to fail.
final Message message1 = subscriberWithSelector.receive(1000);
assertNull("should not have received message", message1);
subscriberWithSelector.close();
session1.close();