@Test public void testSubdir() throws Exception {
// /randomdir/a and /randomdir/subdir/b
String dir = getRandomDir();
writeFile(dir, "a.st", "a(x) ::= <<foo>>");
writeFile(dir+"/subdir", "b.st", "b() ::= \"bar\"");
STGroup group = new STGroupDir(dir);
assertEquals("foo", group.getInstanceOf("a").render());
assertEquals("bar", group.getInstanceOf("/subdir/b").render());
assertEquals("bar", group.getInstanceOf("subdir/b").render());
}