PropertyStack { public String resolvePropertyValue (String value) { List<Chunk> props = parseValue(value); return resolvePropertyValue (props); } PropertyStack(); Properties getProperties(); void setProperties(Properties properties); void addProperty(String name, String value); String resolvePropertyValue(String value);  }
@Test public void testPropertyStackParser () { String input = "test${helloValue}"; String correctResult = "testHello"; String result = propertyStack.resolvePropertyValue (input); Assert.assertTrue (result.equals(correctResult)); testPropertyStackParser("${helloValue}${bonjourValue}", "HelloBonjour"); testPropertyStackParser("B${bonsoirValue}XX${bonjourValue}Z", "BBonSOIRXXBonjourZ"); }