@Test public void extArrayNodeSet_selectParentChild_4() throws XPathException, SAXException, PermissionDeniedException { Sequence nestedSet = executeQuery(broker, "//para[@n = ('1.1.2.1')]", 1, null); NameTest test = new NameTest(Type.ELEMENT, new QName("section", "")); NodeSet sections = broker .getStructuralIndex() .findElementsByTagName(ElementValue.ELEMENT, docs, test.getName(), null); NodeSet result = ((NodeSet) nestedSet).selectParentChild(sections.toNodeSet(), NodeSet.DESCENDANT); assertEquals(1, result.getLength()); }