ProfilerConfiguration implements Config { public static Config load() { return new ProfilerConfiguration(new MultiLineConfigure()); } private  ProfilerConfiguration(MultiLineConfigure configure); private  ProfilerConfiguration(MultiLineConfigure configure, MultiLineConfigure embeddedConfig); static Config load(); static Config load(String name); static Config load(File file, String name); static Config load(ClassLoader classLoader, String name); String read(String propertyKey, String defaultValue); boolean read(String propertyKey, boolean defaultValue); short read(String propertyKey, short defaultValue); int read(String propertyKey, int defaultValue); long read(String propertyKey, long defaultValue); List<String> read(String propertyKey); List<String> read(String propertyKey, String[] defaultValues);  }
@Test public void testLoad() { Config config = ProfilerConfiguration.load(); assertThat(config.read(entry_point, "default"), containsString(TestMethods.class.getName())); assertThat(TestMethods.class.getName(), isIn(config.read(entry_point, default_entry_point))); config = ProfilerConfiguration.load(ProfilerConfigurationTest.class.getClassLoader(), "light.conf"); assertThat(config, instanceOf(ProfilerConfiguration.class)); assertThat(config.read(entry_point, "default"), containsString(TestMethods.class.getName())); config = ProfilerConfiguration.load("light.conf"); assertThat(config.read(entry_point, "default"), containsString(TestMethods.class.getName())); assertThat(config.read(entry_point, "default"), containsString(TestMethods.class.getName())); }