@Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }

      FakeSerializableTestRule that = (FakeSerializableTestRule) o;

      return value != null ? value.equals(that.value()) : that.value() == null;
    }
Fake SerializableTestRule with a string field and overriding equals.
geode-junit/src/test/java/org/apache/geode/test/junit/rules/serializable/SerializableRuleListTest.java