public void expect(final Class<? extends Throwable> type) {
    delegate.expect(type);
    expectsThrowable = true;
  }
Adds to the list of requirements for any thrown exception that it should be an instance of
{@code type}.

@param type the class type to add
geode-junit/src/main/java/org/apache/geode/test/junit/rules/ExpectedTimeoutRule.java