public void testScan() throws ParserException {
String testHtml = "<SCRIPT>document.write(d+\".com\")</SCRIPT>";
createParser(testHtml, "http://www.google.com/test/index.html");
// Register the script scanner
parser.addScanner(new ScriptScanner("-s"));
parseAndAssertNodeCount(1);
assertTrue("Node should be a script tag", node[0] instanceof ScriptTag);
// Check the data in the applet tag
ScriptTag scriptTag = (ScriptTag) node[0];
assertStringEquals("Expected Script Code", "document.write(d+\".com\")", scriptTag.getScriptCode());