### Question:
AssetLicense extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetLicense)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetLicense that = (AssetLicense) objectToCompare; return Objects.equals(getLicenseBean(), that.getLicenseBean()); } AssetLicense(License   licenseBean);  AssetLicense(AssetDescriptor     parentAsset,
                        License             licenseBean);  AssetLicense(AssetDescriptor   parentAsset, AssetLicense templateLicense); String getLicenseTypeGUID(); String getLicenseTypeName(); String getLicensee(); String getSummary(); AssetExternalReference getLink(); Date getStartDate(); Date getEndDate(); String getLicenseConditions(); 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())); AssetLicense sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }