@Test(expected = XMLProcessingException.class)
public void testGetRequiredNodeAsQName() {

    OMElement root = adapter.getRootElement();
    QName value = adapter.getRequiredNodeAsQName( root, new XPath( "wfs:Query/@typeName", nsContext ) );
    assertEquals( new QName( APP_NS, "Philosopher" ), value );
    adapter.getRequiredNodeAsQName( root, new XPath( "wfs:Query/@doesNotExist", nsContext ) );
}