"}" +
"}";
AMQDestination dest = (AMQDestination)jmsSession.createQueue(addr);
MessageConsumer cons = jmsSession.createConsumer(dest);
AMQSession_0_10 ssn = (AMQSession_0_10)jmsSession;
assertTrue("Queue not created as expected",ssn.isQueueExist(dest, true));
assertTrue("Queue not bound as expected",ssn.isQueueBound("amq.direct","my-queue","test", null));
cons.close(); // closing consumer, link binding should be removed now.
assertTrue("Queue should still be there",ssn.isQueueExist(dest, true));
assertFalse("Binding should not exist anymore",ssn.isQueueBound("amq.direct","my-queue","test", null));
MessageProducer prod = jmsSession.createProducer(dest);
assertTrue("Queue not bound as expected",ssn.isQueueBound("amq.direct","my-queue","test", null));
prod.close();
assertFalse("Binding should not exist anymore",ssn.isQueueBound("amq.direct","my-queue","test", null));
}