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);