public ConcurrentOperation expectValue(T expectedValue) {
      if (expectedResultIsSet) {
        throw new IllegalArgumentException("Specify only one expected outcome.");
      }

      this.expectedValue = expectedValue;
      expectedResultIsSet = true;
      return this;
    }
Sets the expected result of running the thread to be a value matching the given value

@param expectedValue the value expected to be returned from the thread. The value must
       implement equals
@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