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