private void doTest(boolean strict) {
EmbeddedCacheManager cm1 = null, cm2 = null;
try {
Configuration c = new Configuration();
c.setCacheMode(Configuration.CacheMode.REPL_SYNC);
c.fluent().transaction().transactionMode(TransactionMode.NON_TRANSACTIONAL);
GlobalConfiguration gc = GlobalConfiguration.getClusteredDefault();
gc.setStrictPeerToPeer(strict);
cm1 = TestCacheManagerFactory.createCacheManager(gc, c);
cm2 = TestCacheManagerFactory.createCacheManager(gc, c);