Set<String> allConfigNames() {
        Set<String> allNames = new HashSet<>();
        List<ConfigDef> connectorConfigDefs = Arrays.asList(
                MirrorCheckpointConfig.CONNECTOR_CONFIG_DEF,
                MirrorSourceConfig.CONNECTOR_CONFIG_DEF,
                MirrorHeartbeatConfig.CONNECTOR_CONFIG_DEF
        );
        for (ConfigDef cd : connectorConfigDefs) {
            allNames.addAll(cd.names());
        }
        return allNames;
    }
@Test
    public void testAllConfigNames() {
        MirrorMakerConfig mirrorConfig = new MirrorMakerConfig(makeProps(
                "clusters", "a, b"));
        Set<String> allNames = mirrorConfig.allConfigNames();

        assertTrue(allNames.contains("topics"));
        assertTrue(allNames.contains("groups"));
        assertTrue(allNames.contains("emit.heartbeats.enabled"));
    }