public class test_CountingNodeTester extends TestCase {
private NodeTest test;
private CountingNodeTester tester;
public void testPositivePath() throws Exception {
test = new NodeTest(new StringReader("<a><b>c</b></a>"));
tester = new CountingNodeTester(2);
test.performTest(tester, Node.ELEMENT_NODE);
tester = new CountingNodeTester(1);
test.performTest(tester, Node.TEXT_NODE);