EnumId implements DataSerializableFixedID { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; EnumId other = (EnumId) obj; if (id != other.id) return false; return true; } EnumId(int id);  EnumId(); @Override int getDSFID(); @Override void toData(DataOutput out,
      SerializationContext context); @Override void fromData(DataInput in,
      DeserializationContext context); int intValue(); int getDSId(); int getEnumNum(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); @Override KnownVersion[] getSerializationVersions();  }
@Test public void testEquals() { final EnumId enumId = new EnumId(ID); assertTrue(enumId.equals(enumId)); assertFalse(enumId.equals(null)); assertFalse(enumId.equals(new Object())); final EnumId sameId = new EnumId(ID); assertTrue(enumId.equals(sameId)); final EnumId differentId = new EnumId(ID + 1); assertFalse(enumId.equals(differentId)); }