public boolean equals(Object o) {
      if (!(o instanceof NonDataSerializable)) {
        return false;
      }

      NonDataSerializable other = (NonDataSerializable) o;
      return other.intValue == intValue && other.doubleValue == doubleValue
          && (other.stringValue != null && stringValue != null)
          && other.stringValue.equals(stringValue)
          && (other.dsValue != null && dsValue != null) && other.dsValue.equals(dsValue)
          && (other.serValue != null && serValue != null)
          && other.serValue.equals(serValue)
          && (other.objectValue != null && objectValue != null)
          && other.objectValue.equals(objectValue);
    }
A non-<code>DataSerializable</code> class whose instances are data serialized using a
<code>Serializer</code>.

@since GemFire 3.5
geode-core/src/test/java/org/apache/geode/internal/DataSerializableJUnitTest.java