    @Test
    public void testMultiValue() throws IOException
    {

        String     sEntry1    = "Entry 1";
        String     sEntry2    = "Entry two";

        MultiValue multiValue = new MultiValue(sEntry1.getBytes(), sEntry2.getBytes());

        byte[]     aBytes     = multiValue.toByteArray();

        int        i          = 0;

        // count of number of entries
        assertEquals(0, aBytes[i++]);
        assertEquals(0, aBytes[i++]);
        assertEquals(0, aBytes[i++]);
        assertEquals(2, aBytes[i++]);

        // first entry length
        assertEquals(0, aBytes[i++]);
        assertEquals(0, aBytes[i++]);
        assertEquals(0, aBytes[i++]);
        assertEquals(sEntry1.length(), aBytes[i++]);

        // first entry
        byte[] aEntry1Bytes = sEntry1.getBytes();

        for (int j = 0; j < aEntry1Bytes.length; j++)
        {
            assertEquals(aEntry1Bytes[j], aBytes[i++]);
        }

        // second entry length
        assertEquals(0, aBytes[i++]);
        assertEquals(0, aBytes[i++]);
        assertEquals(0, aBytes[i++]);
        assertEquals(sEntry2.length(), aBytes[i++]);

        // second entry
        byte[] aEntry2Bytes = sEntry2.getBytes();

        for (int j = 0; j < aEntry2Bytes.length; j++)
        {
            assertEquals(aEntry2Bytes[j], aBytes[i++]);
        }

    }