Connection conn = cf.createConnection();
conn.start();
Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer cons = sess.createConsumer(queue);
TextMessage tm = (TextMessage)cons.receive(5000);
assertNotNull(tm);
assertEquals(MESSAGE_TEXT, tm.getText());
// the client VM should exit by itself. If it doesn't, that means we have a problem