public void awaitExecuted(long timeout, TimeUnit unit) {
    await().until(() -> executed);
  }
Used to detect that a particular ExpiryTask has expired.
geode-junit/src/main/java/org/apache/geode/ExpirationDetector.java