private void handleTime(final Long duration) {
    if (expectsTimeout()) {
      assertThat(timeUnit.convert(duration, TimeUnit.NANOSECONDS),
          new TimeMatcher(timeUnit, minDuration, 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