public virtual void testGroupFileFormat()
        {
            String templates = "group test;" + newline + "t() ::= \"literal template\"" + newline + "bold(item) ::= \"<b>$item$</b>\"" + newline + "duh() ::= <<" + newline + "xx" + newline + ">>" + newline;
            StringTemplateGroup group = new StringTemplateGroup(new StringReader(templates));

            String expecting = "group test;\nduh() ::= <<xx>>\nbold(item) ::= <<<b>$item$</b>>>\nt() ::= <<literal template>>\n";
            Assert.AreEqual(group.ToString(), expecting);

            StringTemplate a = group.getInstanceOf("t");
            expecting = "literal template";
            Assert.AreEqual(a.ToString(), expecting);

            StringTemplate b = group.getInstanceOf("bold");
            b.setAttribute("item", "dork");
            expecting = "<b>dork</b>";
            Assert.AreEqual(b.ToString(), expecting);
        }