format.setValueMap(valuesMap); assertEquals("The quick brown fox jumps over the lazy dog.", format.replace(REPLACE_TEMPLATE));
this.setValueMap(valuesMap); assertEquals("The quick brown fox jumps over the lazy dog.", this.getFormat().replace(REPLACE_TEMPLATE));
    public void testRecursiveReplacement() {        Map valuesMap = new HashMap();        valuesMap.put("animal", "${critter}");        valuesMap.put("target", "${pet}");        valuesMap.put("pet", "${petCharacteristic} dog");        valuesMap.put("petCharacteristic", "lazy");        valuesMap.put("critter", "${critterSpeed} ${critterColor} ${critterType}");        valuesMap.put("critterSpeed", "quick");        valuesMap.put("critterColor", "brown");        valuesMap.put("critterType", "fox");        format.setValueMap(valuesMap);        assertEquals("The quick brown fox jumps over the lazy dog.", format.replace(REPLACE_TEMPLATE));    }