+ "</html>");
parser.addScanner(new TitleScanner(""));
parser.addScanner(new HtmlScanner());
parseAndAssertNodeCount(1);
assertType("html tag", Html.class, node[0]);
Html html = (Html) node[0];
NodeList nodeList = new NodeList();
html.collectInto(nodeList, TitleTag.class);
assertEquals("nodelist size", 1, nodeList.size());
Node node = nodeList.elementAt(0);
assertType("expected title tag", TitleTag.class, node);
TitleTag titleTag = (TitleTag) node;
assertStringEquals("title", "Some Title", titleTag.getTitle());