### Question:
AssetSummary extends AssetDescriptor { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetSummary)) { return false; } AssetSummary that = (AssetSummary) objectToCompare; return assetBean.equals(that.getAssetBean()); } protected  AssetSummary();  AssetSummary(Asset assetBean);  AssetSummary(AssetSummary templateAssetSummary); AssetElementType getType(); String getGUID(); String getURL(); String getQualifiedName(); String getDisplayName(); String getShortDescription(); String getDescription(); String getOwner(); OwnerType getOwnerType(); List<String> getZoneMembership(); List<AssetClassification> getAssetClassifications(); Map<String, String> getOrigins(); String getLatestChange(); Map<String, Object> getExtendedProperties(); AdditionalProperties getAdditionalProperties(); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); AssetSummary sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }