RegionMapPut extends AbstractRegionMapPut { boolean isOverwritePutIfAbsent() { return overwritePutIfAbsent; } RegionMapPut(FocusedRegionMap focusedRegionMap, InternalRegion owner,
      CacheModificationLock cacheModificationLock, EntryEventSerialization entryEventSerialization,
      EntryEventImpl event, boolean ifNew, boolean ifOld, boolean overwriteDestroyed,
      boolean requireOldValue, Object expectedOldValue);   }
@Test public void doesNotSetEventOldValueIfRetriedPutIfAbsentOperation() { final byte[] bytes = new byte[] {1, 2, 3, 4, 5}; givenExistingRegionEntry(); when(existingRegionEntry.getValue()).thenReturn(bytes); when(internalRegion.getConcurrencyChecksEnabled()).thenReturn(true); givenPutIfAbsentOperation(bytes); doPut(); verify(event).setOldValue(null, true); assertThat(instance.isOverwritePutIfAbsent()).isTrue(); }