@Test
    public void testOF2814MultiByteCharacters() throws Exception
    {
        // Setup test fixture.
        final String input = "<message to='foo@example.org'><body>\u3053\u308C\u306F\u30DE\u30EB\u30C1\u30D0\u30A4\u30C8\u6587\u5B57\u3092\u542B\u3080\u30C6\u30B9\u30C8 \u30D9\u30AF\u30C8\u30EB\u3067\u3059\u3002</body></message>";
        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 {@link XMLLightweightParser} can parse a stanza that contains multi-byte characters.
xmppserver/src/test/java/org/jivesoftware/openfire/nio/XMLLightweightParserTest.java