assertInCacheAndStore(preloadingCache, preloadingStore, "k" + i, "v" + i);
else
assertInCacheAndStore(preloadingCache, preloadingStore, "k" + i, "v" + i, lifespan);
}
DataContainer c = preloadingCache.getAdvancedCache().getDataContainer();
assert c.size() == 4;
preloadingCache.stop();
assert c.size() == 0;
preloadingCache.start();
// The old store's marshaller is not working any more
preloadingStore = TestingUtil.extractComponent(preloadingCache, CacheLoaderManager.class).getCacheStore();
assert preloadingCache.getConfiguration().getCacheLoaderManagerConfig().isPreload();
c = preloadingCache.getAdvancedCache().getDataContainer();
assert c.size() == 4;
for (int i = 1; i < 5; i++) {
if (i % 2 == 1)
assertInCacheAndStore(preloadingCache, preloadingStore, "k" + i, "v" + i);
else