ConfigurationListenerManager { public void initListeners() { schemaChangedListener.watch(ChangedType.UPDATED, ChangedType.DELETED, ChangedType.ADDED); propertiesChangedListener.watch(ChangedType.UPDATED); authenticationChangedListener.watch(ChangedType.UPDATED); } ConfigurationListenerManager(final ConfigurationRepository configurationRepository, final Collection<String> schemaNames); void initListeners();  }
@Test public void assertInitListeners() { ConfigurationListenerManager actual = new ConfigurationListenerManager(configurationRepository, Arrays.asList("sharding_db", "primary_replica_replication_db")); setField(actual, "schemaChangedListener", schemaChangedListener); setField(actual, "propertiesChangedListener", propertiesChangedListener); setField(actual, "authenticationChangedListener", authenticationChangedListener); actual.initListeners(); verify(propertiesChangedListener).watch(ChangedType.UPDATED); verify(authenticationChangedListener).watch(ChangedType.UPDATED); }