public void testDeadlock() throws InterruptedException, URLSyntaxException, JMSException
{
// in order to trigger the deadlock we need to
// set a message listener from one thread
// whilst receiving a message on another thread and on that thread also setting (the same?) message listener
AMQConnectionFactory acf = new AMQConnectionFactory(connectionString);
Connection conn = acf.createConnection();
conn.start();
sess = conn.createSession(false, org.apache.qpid.jms.Session.NO_ACKNOWLEDGE);
setSessionListener(topic1, new TestMessageListener());