XpathNodeIdentifier extends XmlSyntaxIdentifierImpl { public void setResolveAsNodeset(Boolean b) { resolveAsNodeset = b; } XpathNodeIdentifier();  XpathNodeIdentifier(List<String> xpaths, String dest); @Override boolean isThisSyntax(String message); Boolean getResolveAsNodeset(); void setResolveAsNodeset(Boolean b);  }
@Test public void testSetResolveAsNodeset() { XpathNodeIdentifier ident = createIdentifier(); assertFalse(ident.resolveAsNodeset()); ident.setResolveAsNodeset(Boolean.TRUE); assertTrue(ident.resolveAsNodeset()); ident.setResolveAsNodeset(Boolean.FALSE); assertFalse(ident.resolveAsNodeset()); ident.setResolveAsNodeset(null); assertFalse(ident.resolveAsNodeset()); }