@Test
    public final void testWrap() {
        ByteBuffer b1 = toCheck.wrap();
        ByteBuffer b2 = ByteBuffer.wrap(rawBytes);
        byte[] c1 = new byte[b1.remaining()];
        byte[] c2 = new byte[b2.remaining()];
        b1.get(c1);
        b2.get(c2);
        assertArrayEquals(c2, c1);
    }
Check the Utf8Array API behaves as expected.

@author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
vespajlib/src/test/java/com/yahoo/text/Utf8ArrayTestCase.java