@Test
    public void testNamespaceOnEmptyStanzaWithoutChildElement() throws Exception
    {
        // Setup fixture
        final Message message = new Message();
        final List<Packet> packets = new ArrayList<>();
        packets.add( message );

        // Execute system under test
        final HttpSession.Deliverable deliverable = new HttpSession.Deliverable( packets );
        final String result = deliverable.getDeliverable();

        // verify results
        // Note that this assertion depends on the Openfire XML parser-specific ordering of attributes.
        assertEquals( "<message xmlns=\"jabber:client\"/>", result );
    }
Verifies that the default namespace is set on empty stanzas (that do not have a child element)

@see <a href="https://igniterealtime.org/issues/browse/OF-1087">OF-1087</a>
xmppserver/src/test/java/org/jivesoftware/openfire/http/HttpSessionDeliverableTest.java