@Test
    public void testOF2329SelfTerminatingWithSpace() throws Exception
    {
        // Setup test fixture.
        final String input = "<presence to='foo@example.org'/>";
        ByteBuf buffer = ByteBufAllocator.DEFAULT.buffer(input.getBytes().length);
        buffer.writeCharSequence(input, StandardCharsets.UTF_8);
        final XMLLightweightParser parser = new XMLLightweightParser();

        // Execute system under test.
        parser.read(buffer);
        final String[] result = parser.getMsgs();

        // Verify results.
        assertNotNull( result );
        assertEquals(1, result.length );
    }
Asserts that a self-terminating start-tag name can be parsed when it is followed by a space character.

This test checks for a variation of the issue described in OF-2329.

@see <a href="https://igniterealtime.atlassian.net/browse/OF-2329">OF-2329: XML parsing bug when tag-name is not followed by space or '>'</a>
xmppserver/src/test/java/org/jivesoftware/openfire/nio/XMLLightweightParserTest.java