assertEquals("<<", format.getVariablePrefix()); assertEquals(">>", format.getVariableSuffix()); assertEquals('\\', format.getEscapeCharacter());
assertEquals("<<", this.getFormat().getVariablePrefix()); assertEquals(">>", this.getFormat().getVariableSuffix()); assertEquals('\\', this.getFormat().getEscapeCharacter());
    public void testInitialize() {        assertNotNull(format.getValueMap());        assertEquals(VariableFormatter.DEFAULT_PREFIX, format.getVariablePrefix());        assertEquals(VariableFormatter.DEFAULT_SUFFIX, format.getVariableSuffix());        assertEquals(VariableFormatter.DEFAULT_ESCAPE, format.getEscapeCharacter());        format = new VariableFormatter(values, "<<", ">>", '\\');        assertEquals("<<", format.getVariablePrefix());        assertEquals(">>", format.getVariableSuffix());        assertEquals('\\', format.getEscapeCharacter());        try {            format = new VariableFormatter(null);            fail("Could create format object with null map!");        } catch (IllegalArgumentException iex) {            // ok        }        try {            format = new VariableFormatter(values, "${", null);            fail("Could create format object with undefined suffix!");        } catch (IllegalArgumentException iex) {            // ok        }        try {            format = new VariableFormatter(values, null, "]");            fail("Could create format object with undefined prefix!");        } catch (IllegalArgumentException iex) {            // ok        }    }