ReceiverComponent receiver = new ReceiverComponent();
container.activateComponent(receiver, "receiver");
QueueConnection qConn = connectionFactory.createQueueConnection();
QueueSession qSess = qConn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
QueueSender qSender = qSess.createSender(queue);
TextMessage message = qSess.createTextMessage("<?xml version=\"1.0\" encoding=\"UTF-8\"?><hello>world</hello>");
qSender.send(message);
receiver.getMessageList().assertMessagesReceived(1);
List msgs = receiver.getMessageList().flushMessages();