public void testCacheStoringImplicitTxOptionOverride() throws Exception
{
CacheSPI<Object, Object> cache = createCacheWithLoader();
CacheLoader loader = cache.getCacheLoaderManager().getCacheLoader();
Option option = new Option();
option.setCacheModeLocal(true);
cache.getInvocationContext().setOptionOverrides(option);
cache.put(fqn, key, value);
assertEquals(value, cache.get(fqn, key));
//now lets see if the state has been persisted in the cache loader
assertNotNull(loader.get(fqn));