@Override
    public boolean equals(Object obj) {
      if (this == obj) {
        return true;
      }
      if (obj == null || getClass() != obj.getClass()) {
        return false;
      }
      FailureInfo that = (FailureInfo) obj;
      return thrownClass.equals(that.thrownClass) &&
          (expectedMessage.contains(that.expectedMessage) ||
              that.expectedMessage.contains(expectedMessage));
    }
Used by JUnit rule unit tests to execute inner test cases.
geode-junit/src/main/java/org/apache/geode/test/junit/runners/TestRunner.java