### Question:
PropertiesUtil extends PropertyPlaceholderConfigurer { public static Integer getIntProperty(String key, int defaultValue) { if (key == null) { return null; } String rtrnVal = propertiesMap.get(key); if (rtrnVal == null) { return defaultValue; } return Integer.valueOf(rtrnVal); } 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 testGetIntPropertyNull1(){ String key=null; PropertiesUtil.getIntProperty(key); Assert.assertNull(key); }
@Test public void testGetIntPropertyl1(){ String key="1"; Integer value= PropertiesUtil.getIntProperty(key); Assert.assertNull(value); }
@Test public void testGetIntPropertyNull(){ String key=null; int defaultValue=0; PropertiesUtil.getIntProperty(key, defaultValue); Assert.assertNull(key); }
@Test public void testGetIntPropertyl(){ String key="1"; int defaultValue=1; Integer value= PropertiesUtil.getIntProperty(key, defaultValue); Assert.assertEquals(value, Integer.valueOf(key)); }