assertTrue("HEAD node should have eleven children",11 == head.getChildCount ());
assertTrue("Third child should be a title tag",head.getChild(2) instanceof MetaTag);
MetaTag metaTag = (MetaTag)head.getChild(2);
assertStringEquals("Meta Tag Name",description,metaTag.getMetaTagName());
assertStringEquals("Meta Tag Contents",content,metaTag.getMetaContent());
assertStringEquals("toHTML()",tag,metaTag.toHtml());
}
public void testScan() throws ParserException {
String description = "description";
String content = "Protecting the internet community through technology, not legislation. SpamCop eliminates spam. Automatically file spam reports with the network administrators who can stop spam at the source. Subscribe, and filter your email through powerful statistical analysis before it reaches your inbox.";