### Question:
AssetReferenceable extends AssetElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetReferenceable)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetReferenceable that = (AssetReferenceable) objectToCompare; return Objects.equals(getReferenceableBean(), that.getReferenceableBean()); } protected  AssetReferenceable(AssetDescriptor parentAsset); protected  AssetReferenceable(Referenceable referenceableBean); protected  AssetReferenceable(AssetDescriptor parentAsset,
                                 Referenceable referenceableBean);  AssetReferenceable(AssetDescriptor parentAsset, AssetReferenceable template); String getQualifiedName(); List<AssetMeaning> getMeanings(); AdditionalProperties getAdditionalProperties(); @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())); AssetReferenceable sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }