RegionMapCommitPut extends AbstractRegionMapPut { boolean isCallbackEventInPending() { return this.callbackEventInPending; } RegionMapCommitPut(FocusedRegionMap focusedRegionMap, InternalRegion owner,
      @Released EntryEventImpl callbackEvent, Operation putOp, boolean didDestroy,
      TransactionId txId, TXRmtEvent txEvent, List<EntryEventImpl> pendingCallbacks,
      TXEntryState txEntryState);   }
@Test public void putThatDoesNotAddEventToPendingCallbacksCallsEventRelease() { createInstance(Operation.UPDATE, false, txRmtEvent, null); instance.put(); assertThat(instance.isCallbackEventInPending()).isFalse(); assertThat(pendingCallbacks).doesNotContain(event); verify(event, never()).changeRegionToBucketsOwner(); verify(event, never()).setOriginRemote(anyBoolean()); verify(event, times(1)).release(); }
@Test public void putThatDoesNotInvokesCallbacksDoesNotAddToPendingCallbacks() { createInstance(Operation.UPDATE, false, txRmtEvent, null); instance.put(); assertThat(instance.isCallbackEventInPending()).isFalse(); assertThat(pendingCallbacks).doesNotContain(event); verify(event, never()).changeRegionToBucketsOwner(); verify(event, never()).setOriginRemote(anyBoolean()); }