### Question:
APIOperation extends SchemaType { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } APIOperation that = (APIOperation) objectToCompare; return Objects.equals(getCommand(), that.getCommand()) && Objects.equals(getHeaderSchemaType(), that.getHeaderSchemaType()) && Objects.equals(getRequestSchemaType(), that.getRequestSchemaType()) && Objects.equals(getResponseSchemaType(), that.getResponseSchemaType()); } APIOperation();  APIOperation(APIOperation template); String getCommand(); void setCommand(String command); SchemaType getHeaderSchemaType(); void setHeaderSchemaType(SchemaType headerSchemaType); SchemaType getRequestSchemaType(); void setRequestSchemaType(SchemaType requestSchemaType); SchemaType getResponseSchemaType(); void setResponseSchemaType(SchemaType responseSchemaType); @Override SchemaElement cloneSchemaElement(); @Override SchemaType cloneSchemaType(); @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())); APIOperation sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); APIOperation differentObject = getTestObject(); differentObject.setGUID("Different"); assertFalse(getTestObject().equals(differentObject)); }