@Test
public void serializeEntry() {

    Tuple key = Tuple.from(1066L);
    List<Integer> value = Arrays.asList(0, 1, 127 + 1, 128 + 1 + 127);
    byte[] serialized = serializer.serializeEntry(key, value);
    assertArrayEquals(ByteArrayUtil.join(
                new byte[]{0x03}, key.pack(),
                new byte[]{0x05}, new byte[]{0x00, 0x01, 0x7f, (byte)0x81, 0x00}
            ), serialized);
}