@Test
public void example() {

    // Make sure the example is actually correct
    final List<Map.Entry<Tuple, List<Integer>>> entries = Arrays.asList(
            entryOf(Tuple.from(1066L), Arrays.asList(1, 3, 5, 8)),
            entryOf(Tuple.from(1415L), Arrays.asList(0, 600, 605))
    );
    final byte[] expectedBytes = new byte[]{0x20, 0x04, 0x01, 0x02, 0x02, 0x03, 0x03, 0x16, 0x05, (byte)0x87, 0x04, 0x00, (byte)0x84, 0x58, 0x05};
    assertArrayEquals(expectedBytes, serializer.serializeEntries(entries));
}