public boolean wasInvoked() {
    checkForError();
    boolean value = invoked;
    if (value) {
      invoked = false;
    }
    return value;
  }
Returns whether or not one of this <code>CacheListener</code> methods was invoked. Before
returning, the <code>invoked</code> flag is cleared.

@return whether one of this <code>CacheListener</code> methods was invoked
geode-dunit/src/main/java/org/apache/geode/cache30/TestCacheCallback.java