@Override
          public void afterCreate(final EntryEvent event) {
            beforeWrite.accept(event.getKey());
          }
Allows spying on operations that happen to an the regions underlying a lucene index.
geode-lucene/geode-lucene-test/src/main/java/org/apache/geode/cache/lucene/test/IndexRegionSpy.java