public ConcurrentOperation expectExceptionType(Class expectedExceptionType) {
      if (expectedException != null || expectedValue != null) {
        throw new IllegalArgumentException("Specify only one expected outcome.");
      }

      this.expectedExceptionType = expectedExceptionType;
      expectedResultIsSet = true;
      return this;
    }
Sets the expected result of running the thread to be an exception that is an instance of the
given class

@param expectedExceptionType the class of the expected exception. Causes will not be checked.
@return this, the ConcurrentOperation (containing a callable) that has been set to repeat
geode-junit/src/main/java/org/apache/geode/test/junit/rules/ConcurrencyRule.java