assertEquals("${animal}", format.replace("$${animal}")); format.getValueMap().put("var_name", "x"); assertEquals("Many $$$$${target} $s", format.replace("Many $$$$$${target} $s")); assertEquals("Variable ${x} must be used!", format.replace("Variable $${${var_name$}} must be used!"));
assertEquals("${animal}", this.getFormat().replace("$${animal}")); this.getValueMap().put("var_name", "x"); assertEquals("Many $$$$${target} $s", this.getFormat().replace("Many $$$$$${target} $s")); assertEquals("Variable ${x} must be used!", this.getFormat().replace("Variable $${${var_name$}} must be used!"));
    public void testEscape() {        assertEquals("${animal}", format.replace("$${animal}"));        format.getValueMap().put("var_name", "x");        assertEquals("Many $$$$${target} $s", format.replace("Many $$$$$${target} $s"));        assertEquals("Variable ${x} must be used!", format.replace("Variable $${${var_name$}} must be used!"));    }