PropertiesUtil { public String getProperty(String key) { String value = properties.getProperty(key); return CommonUtil.notNull(value, ""); } PropertiesUtil(File file); String getProperty(String key); PropertiesUtil setProperty(String key, String value); void saveLastKey(); Properties getProperties(); void setProperties(Properties properties);  }
@Test(groups = { "TestPropertiesUtil"}, dependsOnMethods = {"testSaveLastKey"}) public void testGetPropertie() { assertEquals(propertiesUtil.getProperty("name"), "name1"); assertEquals(propertiesUtil.getProperty("value"), "value1"); }