@Override
    public boolean equals(Object other) {
      if (other instanceof MyValueWithPartialEquals) {
        MyValueWithPartialEquals o = (MyValueWithPartialEquals) other;
        // just compare the first char
        return value.charAt(0) == o.value.charAt(0);
      } else {
        return false;
      }
    }
This class has an equals that does not compare all its bytes.
geode-core/src/integrationTest/java/org/apache/geode/internal/offheap/OffHeapRegionBase.java