@Test
public void testSubLayout() throws IOException {
String src = readFile("JapidSample/app/japidviews/_layouts/SubLayout.html");
JapidTemplate bt = new JapidTemplate("japidviews/_layouts/SubLayout.html", src);
JapidAbstractCompiler cp = new JapidLayoutCompiler();
cp.compile(bt);
String srccode = bt.javaSource;
System.out.println(srccode);
assertTrue("invalid java code", JavaSyntaxTool.isValid(bt.javaSource));
assertTrue(srccode.contains("package japidviews._layouts;"));
assertTrue(srccode.contains("public abstract class SubLayout extends Layout"));