ConfigurationRegistry implements Closeable { public void addConfigurationSource(ConfigurationSource configurationSource) { addConfigurationSource(configurationSource, true); } @Deprecated  ConfigurationRegistry(Iterable<? extends ConfigurationOptionProvider> optionProviders,
								 List<ConfigurationSource> configSources); @Deprecated  ConfigurationRegistry(Iterable<? extends ConfigurationOptionProvider> optionProviders,
								 List<ConfigurationSource> configSources, boolean failOnMissingRequiredValues); static Builder builder(); T getConfig(Class<T> configClass); Collection<ConfigurationOptionProvider> getConfigurationOptionProviders(); Map<String, List<ConfigurationOption<?>>> getConfigurationOptionsByCategory(); Map<String, ConfigurationOption<?>> getConfigurationOptionsByKey(); Map<String, Boolean> getNamesOfConfigurationSources(); ConfigurationOption<?> getConfigurationOptionByKey(String key); void scheduleReloadAtRate(final long rate, TimeUnit timeUnit); void reload(String key); void reloadAllConfigurationOptions(); void reloadDynamicConfigurationOptions(); void addConfigurationSource(ConfigurationSource configurationSource); void addConfigurationSourceAfter(ConfigurationSource configurationSource, Class<? extends ConfigurationSource> addAfter); void addConfigurationSource(ConfigurationSource configurationSource, boolean firstPrio); void save(String key, String value, String configurationSourceName); String getString(String key); @Override void close();  }
@Test public void testAddConfigurationSource() { ConfigurationRegistry configuration = ConfigurationRegistry.builder().build(); configuration.addConfigurationSource(new SimpleSource()); assertEquals(Collections.singletonMap("Transient Configuration Source", true), configuration.getNamesOfConfigurationSources()); }