static class TestView2 implements SubView {
@Override public void renderPartial() {}
}
@Test public void testSubViews() {
Hamlet h = newHamlet().
title("test sub-views").
div("#view1")._(TestView1.class)._().
div("#view2")._(TestView2.class)._();
PrintWriter out = h.getWriter();
out.flush();
assertEquals(0, h.nestLevel);
verify(out).print("["+ TestView1.class.getName() +"]");
verify(out).print("["+ TestView2.class.getName() +"]");
}