@Override
  public void afterTaskRan(ExpiryTask expiryTask) {
    if (expiryTask == this.expiryTask) {
      executed = true;
    }
  }
Used to detect that a particular ExpiryTask has expired.
geode-junit/src/main/java/org/apache/geode/ExpirationDetector.java