@Test
public void testReverse() throws IOException {
String path = "tests/reverse.html";
String src = readFile(path);
JapidTemplate bt = new JapidTemplate(path, src);
JapidAbstractCompiler cp = new JapidTemplateCompiler();
cp.compile(bt);
String srccode = bt.javaSource;
System.out.println(srccode);
assertTrue("invalid java code", JavaSyntaxTool.isValid(srccode));
assertTrue(srccode.contains("p(lookupStatic(\"/x/y.html\"))"));
assertTrue(srccode.contains("p(lookupStatic(\"/a/b/c.html\"))"));