QueueConnectionFactory connectionFactory = (QueueConnectionFactory)context.lookup("ConnectionFactory");
QueueConnection con = connectionFactory.createQueueConnection();
QueueSession session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
Queue resQueue = (Queue)context.lookup("queue/DarResponseQueue");
con.start();
MessageConsumer consumer = session.createConsumer(resQueue);
TextMessage textMessage = (TextMessage)consumer.receive(TEST_RUN_TIME);
String result = textMessage.getText();
assertTrue(result != null);
con.stop();
}