dm.start();
ManagedQueue queue1 = new ManagedQueue("queue1", 1000, 10, 10);
ManagedTopic topic1 = new ManagedTopic("topic1", 1000, 10, 10);
dm.registerDestination(queue1);
dm.registerDestination(topic1);
ManagedDestination queue2 = dm.getDestination("not exists", true);
assertNull(queue2);
ManagedDestination topic2 = dm.getDestination("not exists", false);
assertNull(topic2);
ManagedQueue queue3 = (ManagedQueue)dm.getDestination("queue1", true);
assertTrue(queue1 == queue3);
ManagedDestination queue4 = dm.getDestination("queue1", false);
assertNull(queue4);
ManagedTopic topic3 = (ManagedTopic)dm.getDestination("topic1", false);
assertTrue(topic1 == topic3);
ManagedDestination topic4 = dm.getDestination("topic1", true);