Builder builder = new Builder(new BFilter());
Document doc = builder.build(data, "http://www.example.org/");
Element root = doc.getRootElement();
assertEquals("1234innermost5678", doc.getValue());
assertEquals(5, root.getChildCount());
Node first = root.getChild(0);
assertEquals("1", first.getValue());
Node middle = root.getChild(2);
assertEquals("34innermost56", middle.getValue());
Node last = root.getChild(4);
assertEquals("8", last.getValue());
Node innermost = middle.getChild(2);
assertEquals("innermost", innermost.getValue());
Node inner1 = middle.getChild(0);
assertEquals("3", inner1.getValue());
Node inner3 = middle.getChild(4);
assertEquals("6", inner3.getValue());
}