### Question:
AssetCertification extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetCertification)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetCertification that = (AssetCertification) objectToCompare; return Objects.equals(getCertificationBean(), that.getCertificationBean()); } AssetCertification(Certification certificationBean);  AssetCertification(AssetDescriptor parentAsset,
                              Certification   certificationBean);  AssetCertification(AssetDescriptor parentAsset, AssetCertification templateCertification); String getCertificationTypeGUID(); String getCertificationTypeName(); String getExaminer(); String getSummary(); AssetExternalReference getLink(); Date getStartDate(); Date getEndDate(); String getCertificationConditions(); String getCreatedBy(); String getCustodian(); String getNotes(); @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())); AssetCertification sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }