PropertyFileConfigurationSource extends AbstractConfigurationSource { @Override public String getValue(String key) { return properties.getProperty(key); } PropertyFileConfigurationSource(String location); @Override void reload(); @Override boolean isSavingPersistent(); @Override String getName(); static boolean isPresent(String location); static Properties getFromClasspath(String classpathLocation, ClassLoader classLoader); @Override String getValue(String key); @Override boolean isSavingPossible(); @Override void save(String key, String value);  }
@Test public void testLoadFromClasspath() throws Exception { PropertyFileConfigurationSource source = new PropertyFileConfigurationSource("test.properties"); assertEquals("bar", source.getValue("foo")); }