private GridCacheConfiguration cacheConfiguration() {
GridCacheConfiguration cfg = defaultCacheConfiguration();
cfg.setCacheMode(PARTITIONED);
cfg.setStore(new TestStore());
cfg.setAffinity(new GridCacheModuloAffinityFunction(3, 1));
cfg.setWriteSynchronizationMode(FULL_SYNC);
return cfg;
}