protected void assertSelector(Message message, String text, boolean expected) throws JMSException {
BooleanExpression selector = new SelectorParser().parse(text);
assertTrue("Created a valid selector", selector != null);
MessageEvaluationContext context = new MessageEvaluationContext();
context.setMessageReference((org.apache.activemq.command.Message)message);
boolean value = selector.matches(context);
assertEquals("Selector for: " + text, expected, value);
}
protected Message createMessage(String subject) throws JMSException {
ActiveMQMessage message = new ActiveMQMessage();