public void testScan() throws Exception {
createParser("<html>" + " <head>" + " <title>Some Title</title>" + " </head>" + " <body>" + " Some data"
+ " </body>" + "</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);