CoreConfigurationProvider implements ConfigurationProviderSpi { @Override public Configuration createConfiguration(ConfigurationContext context) { return new CoreConfiguration(context); } CoreConfigurationProvider(); @Override Configuration getConfiguration(ClassLoader classLoader); @Override Configuration createConfiguration(ConfigurationContext context); @Override ConfigurationBuilder getConfigurationBuilder(); @Override void setConfiguration(Configuration config, ClassLoader classLoader); @Override Configuration releaseConfiguration(ClassLoader classloader); @Override boolean isConfigurationSettable(ClassLoader classLoader);  }
@Test public void createConfiguration() throws Exception { Configuration cfg = new CoreConfigurationBuilder().build(); assertThat(new CoreConfigurationProvider().createConfiguration(cfg.getContext())).isNotNull(); assertThat(cfg).isEqualTo(new CoreConfigurationProvider().createConfiguration(cfg.getContext())); }