### Question:
ConfigUtils { public boolean getBooleanValue(Properties props, String key, boolean defaultValue) { return Boolean.parseBoolean(getStringValue(props, key, Boolean.toString(defaultValue))); }  List<String> getNormalizedPackages(String packages); String getStringValue(Properties props, String propertyName, String defaultValue); String getStringValue2(
      Properties props, String propertyName1, String propertyName2, String defaultValue); Optional<String> getStringValue(Properties props, String propertyName); boolean getBooleanValue(Properties props, String key, boolean defaultValue); int getIntValue(Properties props, String key, int defaultValue); String getEnvVarName(String propertyName); String getSystemPropertyName(String key); List<File> getCommaSeparatedFileValues(String uriValues);  }### Answer:
@Test public void should_getBooleanValue_when_present_value() { Properties props = new Properties(); props.setProperty("key", "false"); assertThat(getBooleanValue(props, "key", true), is(false)); }
@Test public void should_getOptionalBooleanValue_when_missing_value() { assertThat(getBooleanValue(new Properties(), "key", true), is(true)); }