Assert.assertEquals("Configuration test key", "has some value", cfg.getProperty("some-key"));
}
@Test
public void testGetConfigurationPropertySet() {
Configuration cfg = new Configuration();
URL confFileUrl = getClass().getResource(getClass().getSimpleName() + ".properties");
cfg.loadConfiguration(confFileUrl.toString());
Map<String, String> propertySet = cfg.getPropertySet("myprefix.");
Assert.assertNotNull("Property Set", propertySet);
Assert.assertEquals("Value 1", propertySet.get("value1"), "value 1");
Assert.assertEquals("Value 2", propertySet.get("value2"), "value 2");
}