### Question:
PropertiesUtil extends PropertyPlaceholderConfigurer { public static boolean getBooleanProperty(String key, boolean defaultValue) { if (key == null) { return defaultValue; } String value = getProperty(key); if (value == null) { return defaultValue; } return Boolean.parseBoolean(value); } private  PropertiesUtil(); static String getProperty(String key, String defaultValue); static String getProperty(String key); static String[] getPropertyStringList(String key); static Integer getIntProperty(String key, int defaultValue); static Integer getIntProperty(String key); static boolean getBooleanProperty(String key, boolean defaultValue); static Map<String, String> getPropertiesMap(); static Properties getProps();  }### Answer:
@Test public void testGetBooleanPropertyNull() { String key = null; boolean defaultValue = true; boolean returnAvlue = PropertiesUtil.getBooleanProperty(key , defaultValue); Assert.assertTrue(returnAvlue); }
@Test public void testGetBooleanProperty() { String key = "1"; boolean defaultValue = true; boolean returnAvlue = PropertiesUtil.getBooleanProperty(key , defaultValue); Assert.assertTrue(returnAvlue); }