@Test
public void testReplacePlaceholdersNullTemplate() {

    Map<String, Attribute> attributes = new HashMap<String, Attribute>();
    attributes.put("attrib1", new Attribute("value{2}"));
    attributes.put("attrib2", new Attribute("value{2}{3}"));
    Definition definition = new Definition("definitionName", (Attribute) null, attributes);
    Definition nudef = PatternUtil.replacePlaceholders(definition, "nudef",
            "value0", "value1", "value2", "value3");
    assertEquals("nudef", nudef.getName());
    assertNull(nudef.getTemplateAttribute());
    Attribute attribute = nudef.getAttribute("attrib1");
    assertEquals("valuevalue2", attribute.getValue());
    attribute = nudef.getAttribute("attrib2");
    assertEquals("valuevalue2value3", attribute.getValue());
}