InputStream is = new ByteArrayInputStream(config.getBytes());
withCacheManager(new CacheManagerCallable(TestCacheManagerFactory.fromStream(is)) {
@Override
public void call() {
PersistenceConfiguration cfg = cm.getDefaultCacheConfiguration().persistence();
StoreConfiguration config = cfg.stores().get(0);
assertTrue(config instanceof AbstractStoreConfiguration);
AbstractStoreConfiguration abstractStoreConfiguration = (AbstractStoreConfiguration)config;
assertTrue(abstractStoreConfiguration.fetchPersistentState());
assertTrue(abstractStoreConfiguration.preload());
}