public void testMessageSelectors() throws Exception {
String clientId = "9";
// Selector to include test message
String messageSelector = propertyName + " LIKE 'test%'";
MessagingClient messagingClient =
new JmsMessagingClient(clientId, this, properties,
messageSelector, false);
messagingClient.start();
sendMessage(TOPIC_NAME);
checkMessage(clientId, TOPIC);
messagingClient.stop(true);
clientId = "10";
// Selector to omit test message
messageSelector = propertyName + " LIKE 'testing%'";
messagingClient =
new JmsMessagingClient(clientId, this, properties,
messageSelector, false);
messagingClient.start();
sendMessage(TOPIC_NAME);
checkNoMessages();
messagingClient.stop(true);
}