@Override
    public boolean equals(Object o) {
      if (o instanceof IntWrapper) {
        IntWrapper other = (IntWrapper) o;
        return other.intValue == intValue;

      } else {
        return false;
      }
    }
A much more simple class to be data serialized
geode-core/src/test/java/org/apache/geode/internal/DataSerializableJUnitTest.java