GovernanceListenerManager { public void init() { configurationListenerManager.initListeners(); registryListenerManager.initListeners(); } GovernanceListenerManager(final RegistryRepository registryRepository, final ConfigurationRepository configurationRepository, final Collection<String> schemaNames); void init();  }
@Test public void assertInit() { GovernanceListenerManager actual = new GovernanceListenerManager(registryRepository, configurationRepository, Collections.emptyList()); FieldUtil.setField(actual, "configurationListenerManager", configurationListenerManager); FieldUtil.setField(actual, "registryListenerManager", registryListenerManager); actual.init(); verify(configurationListenerManager).initListeners(); verify(registryListenerManager).initListeners(); }