@Test
public void readPre111() throws Exception {

    String prefix = "pre-1.1.1-";
    Field kryoHandleBuiltinCollections = KryoSerializers.class.getDeclaredField("KRYO_HANDLE_BUILTIN_COLLECTIONS");
    kryoHandleBuiltinCollections.setAccessible(true);
    try {
        KryoSerializers.register(new KryoForObjectThreadLocal(), false);
        kryoHandleBuiltinCollections.set(null, false);
        readFileAndDeserialize(prefix + "emptyList");
        readFileAndDeserialize(prefix + "emptyMap");
        readFileAndDeserialize(prefix + "emptyNavigableMap");
        readFileAndDeserialize(prefix + "emptySortedMap");
        readFileAndDeserialize(prefix + "emptySet");
        // Legacy Kryo does not support these classes;
        // @see com.esotericsoftware.kryo.Kryo constructor for details
        // readFileAndDeserialize(prefix + "asList");
        // readFileAndDeserialize(prefix + "emptyNavigableSet");
        // readFileAndDeserialize(prefix + "emptySortedSet");
        readFileAndDeserialize(prefix + "singletonSet");
        readFileAndDeserialize(prefix + "singletonList");
        readFileAndDeserialize(prefix + "singletonMap");
    } finally {
        // restore context not to mess up other tests
        kryoHandleBuiltinCollections.set(null, false);
        KryoSerializers.register(null, false);
    }
}