@Test(timeout = 10000)
public void testConvertCompositeTopics() throws Exception {

    String destinationA = "destinationA";
    String destinationB = "destinationB";
    String composite = "/topic/" + destinationA + ",/topic/" + destinationB;
    ActiveMQDestination destination = translator.convertDestination(converter, composite, false);
    assertEquals(ActiveMQDestination.TOPIC_TYPE, destination.getDestinationType());
    assertTrue(destination.isComposite());
    ActiveMQDestination[] composites = destination.getCompositeDestinations();
    assertEquals(2, composites.length);
    Arrays.sort(composites);
    assertEquals(ActiveMQDestination.TOPIC_TYPE, composites[0].getDestinationType());
    assertEquals(ActiveMQDestination.TOPIC_TYPE, composites[1].getDestinationType());
    assertEquals(destinationA, composites[0].getPhysicalName());
    assertEquals(destinationB, composites[1].getPhysicalName());
}