### Question:
AssetSchemaImplementationQuery extends AssetPropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetSchemaImplementationQuery)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetSchemaImplementationQuery that = (AssetSchemaImplementationQuery) objectToCompare; return Objects.equals(getSchemaImplementationQueryBean(), that.getSchemaImplementationQueryBean()) && Objects.equals(getQueryTargetElement(), that.getQueryTargetElement()); } AssetSchemaImplementationQuery(SchemaImplementationQuery  schemaImplementationQueryBean,
                                          AssetSchemaAttribute       queryTargetElement);  AssetSchemaImplementationQuery(AssetDescriptor            parentAsset,
                                          SchemaImplementationQuery  schemaImplementationQueryBean,
                                          AssetSchemaAttribute       queryTargetElement);  AssetSchemaImplementationQuery(AssetDescriptor                parentAsset,
                                          AssetSchemaImplementationQuery template); String getQueryId(); String getQuery(); String getQueryType(); AssetSchemaAttribute getQueryTargetElement(); @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())); AssetSchemaImplementationQuery sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); assertFalse(getTestObject().equals(getYetAnotherDifferentObject())); }