### Question:
AssetFeedback extends AssetPropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetFeedback)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetFeedback that = (AssetFeedback) objectToCompare; return Objects.equals(getInformalTags(), that.getInformalTags()) && Objects.equals(getLikes(), that.getLikes()) && Objects.equals(getRatings(), that.getRatings()) && Objects.equals(getComments(), that.getComments()); } protected  AssetFeedback(AssetDescriptor parentAsset);  AssetFeedback(AssetDescriptor parentAsset,
                         AssetInformalTags informalTags,
                         AssetLikes likes,
                         AssetRatings ratings,
                         AssetComments comments);  AssetFeedback(AssetDescriptor parentAsset, AssetFeedback templateFeedback); AssetInformalTags getInformalTags(); AssetLikes getLikes(); AssetRatings getRatings(); AssetComments getComments(); @Override String toString(); @Override boolean equals(Object objectToCompare);  }### Answer:
@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); AssetFeedback sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }