PropertiesUtil { public void setProperties(Properties properties) { this.properties = properties; } PropertiesUtil(File file); String getProperty(String key); PropertiesUtil setProperty(String key, String value); void saveLastKey(); Properties getProperties(); void setProperties(Properties properties);  }
@Test(groups = { "TestPropertiesUtil"}) public void testsetProperties() { Properties properties = new Properties(); properties.put("name", "name1"); properties.put("value", "value1"); propertiesUtil.setProperties(properties); assertEquals(propertiesUtil.getProperty("name"), properties.get("name")); assertEquals(propertiesUtil.getProperty("value"), properties.get("value")); }