PropertyStack { public void addProperty(String name, String value) { getProperties().setProperty(name, resolvePropertyValue(value)); } PropertyStack(); Properties getProperties(); void setProperties(Properties properties); void addProperty(String name, String value); String resolvePropertyValue(String value);  }
@Test public void testAddProperty () { propertyStack.addProperty(sample, sampleValue); String result = propertyStack.getProperties().getProperty(sample); Assert.assertTrue(result.equals(sampleCorrectResult)); }