"%>\n";
writeFile(dir, "g2.stg", g2);
STGroup group1 = new STGroupFile(dir+"/g1.stg");
STGroup group2 = new STGroupFile(dir+"/g2.stg");
group2.importTemplates(group1); // define r in g2
ST st = group2.getInstanceOf("a");
String expected = "[foo]";
String result = st.render();
assertEquals(expected, result);
}