String selector = "color = 'red'";
MessageConsumer redConsumer = session.createConsumer(HornetQServerTestCase.queue1, selector);
conn.start();
Message redMessage = session.createMessage();
redMessage.setStringProperty("color", "red");
Message blueMessage = session.createMessage();
blueMessage.setStringProperty("color", "blue");