@Override
    public boolean matchesSafely(final Long duration) {
      return duration >= minDuration && duration <= maxDuration;
    }
Adds {@code matcher} to the list of requirements for the cause of any thrown exception.

@param expectedCause the throwable to add to the list of expected causes
geode-junit/src/main/java/org/apache/geode/test/junit/rules/ExpectedTimeoutRule.java