### Question:
AssetRating extends AssetElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetRating)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetRating that = (AssetRating) objectToCompare; return Objects.equals(getRatingBean(), that.getRatingBean()); } AssetRating(Rating ratingBean);  AssetRating(AssetDescriptor parentAsset,
                       Rating          ratingBean);  AssetRating(AssetDescriptor parentAsset, AssetRating templateRating); boolean isPublic(); String getUser(); StarRating getStarRating(); String getReview(); @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())); AssetRating sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }