public static Boolean containsTopic(String topic) {
        return ALL_TOPICS.containsKey(topic);
    }
check if allTopics contains topic name.
@param topic name of topic
@return true if topic name is a key in allTopics
connect/mirror/src/test/java/org/apache/kafka/connect/mirror/clients/admin/FakeLocalMetadataStore.java