NodeList list;
guts = "<body>Now is the <a id=target><b>time</b></a> for all good <a href=http://bongo.com>men</a>..</body>";
html = "<html>" + guts + "</html>";
createParser (html);
list = parser.extractAllNodesThatMatch (new HasChildFilter (new TagNameFilter ("b")));
assertEquals ("only one element", 1, list.size ());
assertType ("should be LinkTag", LinkTag.class, list.elementAt (0));
LinkTag link = (LinkTag)list.elementAt (0);
assertEquals ("three children", 3, link.getChildCount ());
assertSuperType ("should be TagNode", Tag.class, link.getChildren ().elementAt (0));