### Question:
AssetElementType extends AssetPropertyElementBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetElementType)) { return false; } AssetElementType that = (AssetElementType) objectToCompare; return Objects.equals(getElementTypeBean(), that.getElementTypeBean()); } AssetElementType(ElementType elementTypeBean);  AssetElementType(AssetElementType templateType); String getElementTypeId(); String getElementTypeName(); long getElementTypeVersion(); String getElementTypeDescription(); String getElementSourceServer(); ElementOrigin getElementOrigin(); String getElementHomeMetadataCollectionId(); String getElementHomeMetadataCollectionName(); String getElementLicense(); @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())); AssetElementType sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }