### Question:
EnvironmentPropertyConfigurer { public static Properties resolveDashedProperties(Properties properties) { final Map<String, String> envEntries = System.getenv(); return resolveDashedProperties(properties, envEntries); }  static Properties resolveDashedProperties(Properties properties);  }### Answer:
@Test public void testResolveDashedPropertiesEmpty() throws Exception { final Properties properties = EnvironmentPropertyConfigurer.resolveDashedProperties(new Properties()); assertEquals(properties.size(), 0); }
@Test(dataProvider = "envPropMap") public void testResolveDashedProperties(String key, String value, String keyENV, String valueENV) throws Exception { Properties props = new Properties(); props.put(key, value); props = EnvironmentPropertyConfigurer.resolveDashedProperties(props); assertEquals(props.size(), 1); assertEquals(props.get(key), value); Map<String, String> envMap = Maps.newHashMap(System.getenv()); envMap.put(keyENV, valueENV); props = EnvironmentPropertyConfigurer.resolveDashedProperties(props, envMap); assertEquals(props.size(), 1); assertEquals(props.get(key), valueENV); }