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

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

@param expectedExceptionCauseType the class of the expected exception cause. The exception
       itself 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