@Test
public void testFindQNames() {

    NamespaceBindings ns = new NamespaceBindings();
    ns.addNamespace( "app", "http://www.deegree.org/app" );
    XPath path = new XPath( "/app:eins/app:zwei/app:drei/app:vier", ns );
    QName q3 = new QName( "http://www.deegree.org/app", "drei" );
    Assert.assertEquals( q3, XPathUtils.extractQNames( path ).get( 2 ) );
}