public static boolean isTopic(String destinationName) {
        if (destinationName == null) {
            throw new IllegalArgumentException("destinationName is null");
        }
        return destinationName.startsWith("topic:");
    }
@Test
    public void testIsTopic() {
        assertTrue(DestinationNameParser.isTopic("topic:foo.DestinationNameParserTest"));
        assertFalse(DestinationNameParser.isTopic("queue:bar.DestinationNameParserTest"));
        assertFalse(DestinationNameParser.isTopic("bar"));
    }