InitialContext ctx = createInitialContext();
MessengerHome home = (MessengerHome) ctx.lookup(MESSENGERBEAN_JNDI);
MessengerObject messenger = home.create();
ActiveMQQueue queue = new ActiveMQQueue("testMessageAreConsumed");
messenger.sendMessage(queue, "Test:1");
String msg = messenger.receiveMessage(queue, 10000);
assertEquals("Test:1", msg);
messenger.sendMessage(queue, "Test:2");
msg = messenger.receiveMessage(queue, 10000);