AMQShortString.valueOf(ExchangeDefaults.TOPIC_EXCHANGE_CLASS), false);
sess.declareExchange(new AMQShortString("test.topic"),
AMQShortString.valueOf(ExchangeDefaults.TOPIC_EXCHANGE_CLASS), false);
QueueSession queueSession = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
AMQQueue queue = (AMQQueue) queueSession.createQueue("MyQueue");
assertEquals(queue.getExchangeName().toString(), "test.direct");