@Override
  public boolean equals(Object obj) {
    if (!(obj instanceof SerializableObject)) {
      return false;
    }
    return str.equals(((SerializableObject) obj).str)
        && i == ((SerializableObject) obj).i;
  }
class for creating serializable object which is used for LocalMaxMemory verification.
geode-junit/src/main/java/org/apache/geode/internal/cache/PartitionedRegionTestHelper.java