### Question:
AssetLike extends AssetElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetLike)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetLike that = (AssetLike) objectToCompare; return Objects.equals(getLikeBean(), that.getLikeBean()); } AssetLike(Like  likeBean);  AssetLike(AssetDescriptor      parentAsset,
                     Like                 likeBean);  AssetLike(AssetDescriptor parentAsset, AssetLike templateLike); boolean isPublic(); String getUser(); @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())); AssetLike sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }