public static List<EntryEvent<?, ?>> getInvalidateEvents(
      List<CacheEvent<?, ?>> cacheEvents) {
    return getEntryEventsWithOperation(cacheEvents, Operation::isInvalidate);
  }
Selects the entry invalidate events from a list of cache events.

@param cacheEvents the cache events from which to select invalidate events
@return list of entry invalidate events from the given cache events
geode-junit/src/main/java/org/apache/geode/cache/util/TxEventTestUtil.java