Cache<String, String> c1 = null, c2 = null;
try
{
Configuration cfg = UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.INVALIDATION_SYNC, false);
cfg.setNodeLockingScheme(NodeLockingScheme.MVCC);
c1 = new UnitTestCacheFactory<String, String>().createCache(cfg.clone());
c2 = new UnitTestCacheFactory<String, String>().createCache(cfg.clone());
EventLog eventLog = new EventLog();
c2.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
c2.put("/a/b/c", "x", "y");
c2.addCacheListener(eventLog);