public void testDynamicallyGrowing() throws Exception {
Object answer = context.lookup("dynamicQueues/FOO.BAR");
assertTrue("Should have found a queue but found: " + answer, answer instanceof ActiveMQQueue);
ActiveMQQueue queue = (ActiveMQQueue) answer;
assertEquals("queue name", "FOO.BAR", queue.getPhysicalName());
answer = context.lookup("dynamicTopics/A.B.C");
assertTrue("Should have found a topic but found: " + answer, answer instanceof ActiveMQTopic);
ActiveMQTopic topic = (ActiveMQTopic) answer;