roundTrip(11, 11, list("1", "2", "3"));
roundTrip(13, 13, list("1", "2", list("3")));
roundTrip(13, 13, new LinkedList(list("1", "2", list("3"))));
roundTrip(13, 13, new CopyOnWriteArrayList(list("1", "2", list("3"))));
CollectionSerializer serializer = new CollectionSerializer();
kryo.register(ArrayList.class, serializer);
kryo.register(LinkedList.class, serializer);
kryo.register(CopyOnWriteArrayList.class, serializer);
serializer.setElementClass(String.class, kryo.getSerializer(String.class));
roundTrip(8, 8, list("1", "2", "3"));
serializer.setElementClass(String.class, new StringSerializer());
roundTrip(8, 8, list("1", "2", "3"));
serializer.setElementsCanBeNull(false);
roundTrip(8, 8, list("1", "2", "3"));
kryo.register(TreeSet.class);
TreeSet set = new TreeSet();
set.add("1");