CoreConfigurationServiceImpl implements CoreConfigurationService { @Override public void addConfigLocation(String location) throws FileSystemException { configLocationFileStore.add(location); LOGGER.info("Changed config file location"); } @Autowired  CoreConfigurationServiceImpl(BootstrapManager bootstrapManager, DbConfigManager dbConfigManager, ConfigLocationFileStore configLocationFileStore); @Override @Caching(cacheable = {@Cacheable(value = CORE_SETTINGS_CACHE_NAME, key = ROOT_METHOD_NAME) }) BootstrapConfig loadBootstrapConfig(); @Override @Caching(cacheable = {@Cacheable(value = CORE_SETTINGS_CACHE_NAME, key = ROOT_METHOD_NAME) }) Properties loadDatanucleusDataConfig(); @Override @Caching(cacheable = {@Cacheable(value = CORE_SETTINGS_CACHE_NAME, key = ROOT_METHOD_NAME) }) Properties loadDatanucleusSchemaConfig(); @Override @Caching(cacheable = {@Cacheable(value = CORE_SETTINGS_CACHE_NAME, key = ROOT_METHOD_NAME) }) Properties loadFlywayDataConfig(); @Override @Caching(cacheable = {@Cacheable(value = CORE_SETTINGS_CACHE_NAME, key = ROOT_METHOD_NAME) }) Properties loadFlywaySchemaConfig(); @Override void saveBootstrapConfig(BootstrapConfig bootstrapConfig); @Override ConfigLocation getConfigLocation(); @Override void addConfigLocation(String location); @Override Properties getActiveMqConfig(); @Override void evictMotechCoreSettingsCache();  }
@Test public void shouldAddConfigLocation() throws FileSystemException { final String location = "/etc"; coreConfigurationService.addConfigLocation(location); verify(configLocationFileStoreMock).add(location); }