### Question:
RequestPartitionId { @Override public boolean equals(Object theO) { if (this == theO) { return true; } if (theO == null || getClass() != theO.getClass()) { return false; } RequestPartitionId that = (RequestPartitionId) theO; return new EqualsBuilder() .append(myAllPartitions, that.myAllPartitions) .append(myPartitionDate, that.myPartitionDate) .append(myPartitionId, that.myPartitionId) .append(myPartitionName, that.myPartitionName) .isEquals(); } private  RequestPartitionId(@Nullable String thePartitionName, @Nullable Integer thePartitionId, @Nullable LocalDate thePartitionDate); private  RequestPartitionId(); boolean isAllPartitions(); @Nullable LocalDate getPartitionDate(); @Nullable String getPartitionName(); @Nullable Integer getPartitionId(); @Override String toString(); String getPartitionIdStringOrNullString(); @Override boolean equals(Object theO); @Override int hashCode(); @Nonnull static RequestPartitionId allPartitions(); @Nonnull static RequestPartitionId defaultPartition(); @Nonnull static RequestPartitionId fromPartitionId(@Nullable Integer thePartitionId); @Nonnull static RequestPartitionId fromPartitionId(@Nullable Integer thePartitionId, @Nullable LocalDate thePartitionDate); @Nonnull static RequestPartitionId fromPartitionName(@Nullable String thePartitionName); @Nonnull static RequestPartitionId fromPartitionName(@Nullable String thePartitionName, @Nullable LocalDate thePartitionDate); @Nonnull static RequestPartitionId fromPartitionIdAndName(@Nullable Integer thePartitionId, @Nullable String thePartitionName); @Nonnull static RequestPartitionId forPartitionIdAndName(@Nullable Integer thePartitionId, @Nullable String thePartitionName, @Nullable LocalDate thePartitionDate); static String stringifyForKey(RequestPartitionId theRequestPartitionId);  }### Answer:
@Test public void testEquals() { assertEquals(RequestPartitionId.fromPartitionId(123, LocalDate.of(2020,1,1)), RequestPartitionId.fromPartitionId(123, LocalDate.of(2020,1,1))); assertNotEquals(RequestPartitionId.fromPartitionId(123, LocalDate.of(2020,1,1)), null); assertNotEquals(RequestPartitionId.fromPartitionId(123, LocalDate.of(2020,1,1)), "123"); }