@Test
public void testGetNodeAsString() {

    OMElement root = adapter.getRootElement();
    // select text node
    String textNode = adapter.getNodeAsString( root,
                                               new XPath( "wfs:Query/ogc:Filter/ogc:BBOX/ogc:PropertyName/text()",
                                                          nsContext ), null );
    assertEquals( "app:placeOfBirth/app:Place/app:country/app:Country/app:geom", textNode );
    // select attribute node
    QName attributeNode = adapter.getNodeAsQName( root, new XPath( "wfs:Query/@typeName", nsContext ), null );
    assertEquals( QName.valueOf( "{http://www.deegree.org/app}Philosopher" ), attributeNode );
    // select element node
    String elementNode = adapter.getNodeAsString( root,
                                                  new XPath(
                                                             "wfs:Query/ogc:Filter/ogc:BBOX/gml:Envelope/gml:coord/gml:X",
                                                             nsContext ), null );
    assertEquals( "-1", elementNode );
}