NodeList list;
guts = "<body>Now is the <a id=target><b>time</b></a> for all good <time>men</time>..</body>";
html = "<html>" + guts + "</html>";
createParser (html);
list = parser.extractAllNodesThatMatch (new StringFilter ("Time"));
assertEquals ("only one element", 1, list.size ());
assertSuperType ("should be String", Text.class, list.elementAt (0));
assertStringEquals("name", "time", ((Text)list.elementAt (0)).getText ());
// test case sensitivity
list = parser.extractAllNodesThatMatch (new StringFilter ("Time", true));
assertEquals ("should be no elements", 0, list.size ());
}