createParser("<HTML><HEAD><TITLE>This is the Title</TITLE></HEAD><BODY>Hello World, this is the HTML Parser</BODY></HTML>");
parseAndAssertNodeCount(10);
assertTrue(
"Fourth Node identified must be a string node",
node[3] instanceof StringNode);
StringNode stringNode = (StringNode) node[3];
assertEquals(
"First String Node",
"This is the Title",
stringNode.toPlainTextString());
assertTrue(
"Eighth Node identified must be a string node",
node[7] instanceof StringNode);
stringNode = (StringNode) node[7];
assertEquals(
"Second string node",
"Hello World, this is the HTML Parser",
stringNode.toPlainTextString());
}