### Question:
MemcachedRegionAccessStrategy implements RegionAccessStrategy { public boolean isMinimalPutsEnabled() { return getInternalRegion().getSettings().isMinimalPutsEnabled(); } MemcachedRegionAccessStrategy(GeneralDataMemcachedRegion internalRegion); @Override Object get(Object key, long txTimestamp); @Override boolean putFromLoad(Object key, Object value, long txTimestamp, Object version); @Override boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride); @Override SoftLock lockItem(Object key, Object version); @Override SoftLock lockRegion(); @Override void unlockItem(Object key, SoftLock lock); @Override void unlockRegion(SoftLock lock); @Override void remove(Object key); @Override void removeAll(); @Override void evict(Object key); @Override void evictAll(); boolean isMinimalPutsEnabled();  }### Answer:
@Test public void isMinimalPutsEnabled_true() throws Exception { Settings settings = new TestingSettingsBuilder().setField("minimalPutsEnabled", true).build(); when(generalDataMemcachedRegion.getSettings()).thenReturn(settings); assertThat(memcachedRegionAccessStrategy.isMinimalPutsEnabled()).isTrue(); }
@Test public void isMinimalPutsEnabled_false() throws Exception { Settings settings = new TestingSettingsBuilder().setField("minimalPutsEnabled", false).build(); when(generalDataMemcachedRegion.getSettings()).thenReturn(settings); assertThat(memcachedRegionAccessStrategy.isMinimalPutsEnabled()).isFalse(); }