public static boolean isTopic(String destinationName) {
        if (destinationName == null) {
            throw new IllegalArgumentException("destinationName is null");
        }
        return destinationName.startsWith("topic:");
    }
@Test
    public void testIsTopicNullDestinationName() {
        assertThrows(IllegalArgumentException.class,
                () -> DestinationNameParser.isTopic(null));
    }