@Override
  public boolean equals(Object obj) {
    if (obj instanceof TestNonSizerObject) {
      TestNonSizerObject other = (TestNonSizerObject) obj;
      return StringUtils.equals(testString, other.testString);
    }

    return false;
  }
Test object which does not implement ObjectSizer, used as Key/Value in put operation.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/TestNonSizerObject.java