@Test
    public void testWriteReadSafeUTF() throws Exception
    {
        // Setup fixture.
        final String input = "Test String With Unicode characters: \u0041 \u00f6 \u0416 \u20ac \uD834\uDD1E";

        // Execute system under test.
        new DefaultExternalizableUtil().writeSafeUTF(bus.getDataOutput(), input);
        final String result = new DefaultExternalizableUtil().readSafeUTF(bus.getDataInput());

        // Verify result.
        assertEquals( input, result );
    }
Asserts that the process of writing and reading a UTF value through the {@link DefaultExternalizableUtil}
implementation results in a value that is equal to the original input.

Values taken from <a href="https://rosettacode.org/wiki/UTF-8_encode_and_decode#Java">Rosetta Code</a>
xmppserver/src/test/java/org/jivesoftware/util/cache/DefaultExternalizableUtilTest.java