@Test
public void testAsRelaxedQName()
                        throws XMLStreamException, FactoryConfigurationError, IOException {

    URL url = XMLStreamUtilsTest.class.getResource( "xmlstreamutils.xml" );
    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader( url.openStream() );
    XMLStreamUtils.skipToRequiredElement( reader, new QName( "http://www.opengis.net/sld", "FeatureTypeName" ) );
    QName name = XMLStreamUtils.getElementTextAsRelaxedQName( reader );
    assertEquals( "Namespace not detected properly", "http://www.deegree.org/app", name.getNamespaceURI() );
    assertEquals( "Local name not detected properly", "SGID500_ZipCodes", name.getLocalPart() );
}