### Question:
FavouriteCollectionOutboundEvent extends PersonalProfileOutboundEvent { @Override public int hashCode() { return Objects.hash(super.hashCode(), getUserId(), getMemberGUID(), 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 testHashCode() { assertTrue(getTestObject().hashCode() == getTestObject().hashCode()); CommunityProfileOutboundEvent testObject = getTestObject(); assertTrue(testObject.hashCode() != 0); CommunityProfileOutboundEvent differentObject = getTestObject(); differentObject.setEventVersionId(3773L); assertFalse(testObject.hashCode() == differentObject.hashCode()); }