@Test
    public void ensureOpenElementCollapsedTest() throws Exception
    {
        // Setup test fixture.
        final Element open = DocumentHelper.createElement(QName.get("open", "urn:ietf:params:xml:ns:xmpp-framing"));
        final Document document = DocumentHelper.createDocument(open);
        document.setXMLEncoding(StandardCharsets.UTF_8.toString());
        open.addAttribute("from", "example.org");
        open.addAttribute("id", "unittest123");
        open.addAttribute(QName.get("lang", Namespace.XML_NAMESPACE), "en");
        open.addAttribute("version", "1.0");

        // Execute system under test.
        final String result = WebSocketClientStanzaHandler.withoutDeclaration(document);

        // Verify results.
        assertFalse(result.contains("></open>"));
    }
It is desired to collapse the 'open' element that's send as part of the websocket data exchange. This test
verifies that the {@link WebSocketClientStanzaHandler#withoutDeclaration(Document)} does not return an expanded
XML element.

@see <a href="https://igniterealtime.atlassian.net/browse/OF-2703">OF-2703</a>
xmppserver/src/test/java/org/jivesoftware/openfire/websocket/WebSocketClientStanzaHandlerTest.java