### Question:
FavouriteCollectionOutboundEvent extends PersonalProfileOutboundEvent { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } FavouriteCollectionOutboundEvent that = (FavouriteCollectionOutboundEvent) objectToCompare; return Objects.equals(getUserId(), that.getUserId()) && Objects.equals(getMemberGUID(), that.getMemberGUID()) && Objects.equals(getMemberType(), that.getMemberType()); } FavouriteCollectionOutboundEvent();  FavouriteCollectionOutboundEvent(CommunityProfileOutboundEventType  type,
                                            PersonalProfile                    bean,
                                            String                             userId,
                                            String                             memberGUID,
                                            String                             memberTypeName);  FavouriteCollectionOutboundEvent(FavouriteCollectionOutboundEvent template); String getUserId(); void setUserId(String userId); String getMemberGUID(); void setMemberGUID(String memberGUID); String getMemberType(); void setMemberType(String memberTypeName); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); CommunityProfileOutboundEvent sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); CommunityProfileOutboundEvent anotherObject = getAnotherTestObject(); assertTrue(sameObject.equals(anotherObject)); CommunityProfileOutboundEvent differentObject = getTestObject(); differentObject.setEventVersionId(3773L); assertFalse(getTestObject().equals(differentObject)); }