parseAndAssertNodeCount(1);
assertTrue ("Only node is a html tag",node[0] instanceof Html);
Html html = (Html)node[0];
assertEquals ("Html node has five children", 5, html.getChildCount ());
assertTrue ("Second child is a head tag", html.childAt (1) instanceof HeadTag);
HeadTag head = (HeadTag)html.childAt (1);
assertEquals ("Head node has two children", 2, head.getChildCount ());
assertTrue ("Second child is a title tag", head.childAt (1) instanceof TitleTag);
TitleTag titleTag = (TitleTag)head.childAt (1);
assertEquals("Title","SISTEMA TERRA, VOL. VI , No. 1-3, December 1997",titleTag.getTitle());
// Note: this will fail because of the extra > inserted to finish the /TITLE tag:
// assertStringEquals ("toHtml", text, html.toHtml ());
}