// set to false to fix all the tests
private static final boolean USE_ASYNC_STORE = true;
private static ConfigurationBuilder config(boolean passivation, int threads) {
ConfigurationBuilder config = new ConfigurationBuilder();
config.expiration().wakeUpInterval(100);
config.eviction().maxEntries(1).strategy(EvictionStrategy.LRU);
CacheStoreConfigurationBuilder store = config.loaders().passivation(passivation).addStore().cacheStore(new LockableCacheStore());
if (USE_ASYNC_STORE)
store.async().enable().threadPoolSize(threads);
return config;