String templates =
"foo() ::= \"<a,b:t(),u()>\"\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:19: mismatched input ',' expecting RDELIM"+newline;
String result = errors.toString();
assertEquals(expected, result);
}