static boolean isOpenElement(String text) {
        XmlPullParser parser;
        try {
            parser = PacketParserUtils.getParserFor(text);
            QName qname = parser.getQName();
            return qname.equals(WebSocketOpenElement.QNAME);
        } catch (XmlPullParserException | IOException e) {
            LOGGER.log(Level.WARNING, "Could not inspect \"" + text + "\" for open element", e);
            return false;
        }
    }
@Test
    public void isOpenElementTest() {
        assertTrue(AbstractWebSocket.isOpenElement(OPEN_ELEMENT));
        assertTrue(AbstractWebSocket.isOpenElement(OPEN_ELEMENT_EXPANDED));
        assertFalse(AbstractWebSocket.isOpenElement(OPEN_STREAM));
    }