"foo) ::= << >>\n" +
"bar() ::= <<bar>>\n";
writeFile(tmpdir, "t.stg", templates);
STGroupFile group = null;
STErrorListener errors = new ErrorBuffer();
group = new STGroupFile(tmpdir+"/"+"t.stg");
group.setListener(errors);
group.load(); // force load
String expected = "t.stg 1:0: garbled template definition starting at 'foo'"+newline;
String result = errors.toString();
assertEquals(expected, result);
}