### Question:
ConfigBuilder { @Nullable protected static Boolean getBooleanProperty(String name, Map<String, String> map) { if (map.containsKey(name)) { return Boolean.parseBoolean(map.get(name)); } return null; }  T readProperties(Properties properties); T readEnvironmentVariables(); T readSystemProperties();  }### Answer:
@Test void booleanProperty() { Boolean booleanProperty = ConfigBuilder.getBooleanProperty("boolean", Collections.singletonMap("boolean", "true")); assertThat(booleanProperty).isTrue(); }
@Test void invalidBooleanProperty() { Boolean booleanProperty = ConfigBuilder.getBooleanProperty("boolean", Collections.singletonMap("boolean", "23435")); assertThat(booleanProperty).isFalse(); }
@Test void nullValue_BooleanProperty() { Boolean booleanProperty = ConfigBuilder.getBooleanProperty("boolean", Collections.emptyMap()); assertThat(booleanProperty).isNull(); }
@Test void testBoolProperty() { Map<String, String> map = new HashMap<>(); map.put("int", "1"); map.put("long", "2L"); map.put("boolt", "true"); map.put("boolf", "false"); map.put("string", "random"); assertThat(ConfigBuilder.getBooleanProperty("int", map)).isFalse(); assertThat(ConfigBuilder.getBooleanProperty("long", map)).isFalse(); assertThat(ConfigBuilder.getBooleanProperty("boolt", map)).isTrue(); assertThat(ConfigBuilder.getBooleanProperty("boolf", map)).isFalse(); assertThat(ConfigBuilder.getBooleanProperty("string", map)).isFalse(); assertThat(ConfigBuilder.getBooleanProperty("no-key", map)).isNull(); }