@Test
    public void test_GetNamespacesOnCurrentElement_IgnoredNamespace() throws Exception
    {
        // Setup test fixture.
        packetReader.getXPPParser().resetInput();
        final String input = "<message xmlns:unittest='jabber:client'/>";

        packetReader.getXPPParser().setInput(new StringReader(input));
        int type;
        do { // Progress parsing to the root element.
            type = packetReader.getXPPParser().next();
        } while (type != XmlPullParser.START_TAG || !"message".equals(packetReader.getXPPParser().getName()));

        // Execute system under test.
        final Set<Namespace> namespacesOnCurrentElement = XMPPPacketReader.getPrefixedNamespacesOnCurrentElement(packetReader.getXPPParser());

        // Verify results.
        assertEquals(0, namespacesOnCurrentElement.size());
    }
Verify that {@link XMPPPacketReader#getPrefixedNamespacesOnCurrentElement(XmlPullParser)} does not return a
prefix and namespace declaration on the element that the parser is currently on, if the namespace matches one of
the namespaces in {@link XMPPPacketReader#IGNORED_NAMESPACE_ON_STANZA}.
xmppserver/src/test/java/dom/io/XMPPPacketReaderTest.java