@Test
public void testImmutableList() throws IOException {

  {
    List res = kryoSerDeser(ImmutableList.of(1, 2));
    assertEquals(2, res.size());
    assertEquals(1, res.get(0));
    assertEquals(2, res.get(1));
  }
  {
    List list = ImmutableList.of(1, 2, 3);
    Object obj = new Object();
    List wanted = ImmutableList.of(list, list, obj, obj);
    List res = kryoSerDeser(wanted);
    assertTrue(res.get(0) == res.get(1));
    assertTrue(res.get(2) == res.get(3));
  }
}