ProfilerConfig implements Config { public static Config load() { return load(SystemProperty.LIGHT_CONFIG); } ProfilerConfig();  ProfilerConfig(Properties properties); static Config load(); static Config load(String file); static Config load(ClassLoader classLoader, String file); 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[] defaultValue);  }
@Test public void testLoad() { ProfilerConfig profilerConfig = new ProfilerConfig(); assertThat(profilerConfig.read(method_min_size, default_method_min_size), is(default_method_min_size)); Config config = ProfilerConfig.load(ProfilerConfigTest.class.getClassLoader(), "light.conf"); assertThat(config, instanceOf(ProfilerConfig.class)); assertThat(config.read(method_min_size, default_method_min_size), is(default_method_min_size)); }