### Question:
ReadOnlyNaturalIdRegionAccessStrategy extends BaseNaturalIdMemcachedRegionAccessStrategy { @Override public boolean update(Object key, Object value) throws CacheException { log.debug("region access strategy readonly naturalId update() {} {}", getInternalRegion().getCacheNamespace(), key); throw new UnsupportedOperationException("ReadOnly strategy does not support update."); } ReadOnlyNaturalIdRegionAccessStrategy(NaturalIdMemcachedRegion naturalIdMemcachedRegion); @Override boolean insert(Object key, Object value); @Override boolean afterInsert(Object key, Object value); @Override boolean update(Object key, Object value); @Override boolean afterUpdate(Object key, Object value, SoftLock lock);  }### Answer:
@Test public void update() throws Exception { expectedException.expect(UnsupportedOperationException.class); readOnlyNaturalIdRegionAccessStrategy.update("key", "value"); }