CacheConfig<K, V> asCacheConfig() {
        return this.copy(new CacheConfig<>(), false);
    }
@Test
    public void serializationSucceeds_cacheLoaderFactory() {
        CacheConfig<String, Person> cacheConfig = newDefaultCacheConfig("test");
        cacheConfig.setCacheLoaderFactory(new PersonCacheLoaderFactory());
        PreJoinCacheConfig preJoinCacheConfig = new PreJoinCacheConfig(cacheConfig);
        Data data  = serializationService.toData(preJoinCacheConfig);
        PreJoinCacheConfig deserialized = serializationService.toObject(data);
        assertEquals(preJoinCacheConfig, deserialized);
        assertEquals(cacheConfig, deserialized.asCacheConfig());
        assertTrue("Invalid Factory Class", deserialized.getCacheLoaderFactory() instanceof PersonCacheLoaderFactory);
    }