public void testScan() throws ParserException {
createParser("<table><div align=\"left\">some text</div></table>");
parser.registerScanners();
parser.addScanner(new TableScanner(parser));
parser.addScanner(new DivScanner());
parseAndAssertNodeCount(1);
assertType("node should be table", TableTag.class, node[0]);
TableTag tableTag = (TableTag) node[0];
Div div = (Div) tableTag.searchFor(Div.class).toNodeArray()[0];
assertEquals("div contents", "some text", div.toPlainTextString());