cache2 = (CacheSPI<Object, Object>) new UnitTestCacheFactory<Object, Object>().createCache(c, false);
cache1.start();
cache2.start();
asyncOption = new Option();
asyncOption.setForceAsynchronous(true);
syncOption = new Option();
syncOption.setForceSynchronous(true);
Option local = new Option();
local.setCacheModeLocal(true);
cache1.getInvocationContext().setOptionOverrides(local);
cache1.put(FQNA, KEY, VALUE1);
assertEquals("Cache1 correct", VALUE1, cache1.get(FQNA, KEY));
local = new Option();
local.setCacheModeLocal(true);
cache2.getInvocationContext().setOptionOverrides(local);
cache2.put(FQNA, KEY, VALUE1);
// Validate data is as expected
assertEquals("Cache1 correct", VALUE1, cache1.get(FQNA, KEY));