@Test
public void mockQueueTest () throws JMSException
{
ConnectionFactory factory = new InMemoryBusConnectionFactory ();
Connection connection = factory.createConnection ();
final Session session = connection.createSession (false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer (session.createTopic ("test"));
final MessageConsumer consumer = session.createConsumer (session.createTopic ("test"));
consumer.setMessageListener (new MessageListener ()
{