### Question:
ReadOnlyEntityRegionAccessStrategy extends BaseEntityMemcachedRegionAccessStrategy { @Override public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException { log.debug("region access strategy readonly entity update() {} {}", getInternalRegion().getCacheNamespace(), key); throw new UnsupportedOperationException("ReadOnly strategy does not support update."); } ReadOnlyEntityRegionAccessStrategy(EntityMemcachedRegion entityMemcachedRegion); @Override boolean insert(Object key, Object value, Object version); @Override boolean afterInsert(Object key, Object value, Object version); @Override boolean update(Object key, Object value, Object currentVersion, Object previousVersion); @Override boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock);  }### Answer:
@Test public void update() throws Exception { expectedException.expect(UnsupportedOperationException.class); readOnlyEntityRegionAccessStrategy.update("key", "value", "currentVersion", "previousVersion"); }