### Question:
ConnectorType extends Referenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof ConnectorType)) { return false; } if (!super.equals(objectToCompare)) { return false; } ConnectorType that = (ConnectorType) objectToCompare; return Objects.equals(getDisplayName(), that.getDisplayName()) && Objects.equals(getDescription(), that.getDescription()) && Objects.equals(getConnectorProviderClassName(), that.getConnectorProviderClassName()) && Objects.equals(getRecognizedAdditionalProperties(), that.getRecognizedAdditionalProperties()) && Objects.equals(getRecognizedSecuredProperties(), that.getRecognizedSecuredProperties()); } ConnectorType();  ConnectorType(ConnectorType template); static ElementType getConnectorTypeType(); void setDisplayName(String displayName); String getDisplayName(); void setDescription(String description); String getDescription(); void setConnectorProviderClassName(String connectorProviderClassName); String getConnectorProviderClassName(); void setRecognizedAdditionalProperties(List<String>   recognizedAdditionalProperties); List<String> getRecognizedAdditionalProperties(); void setRecognizedConfigurationProperties(List<String>   recognizedConfigurationProperties); List<String> getRecognizedConfigurationProperties(); void setRecognizedSecuredProperties(List<String>  recognizedSecuredProperties); List<String> getRecognizedSecuredProperties(); @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())); ConnectorType sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); ConnectorType differentObject = getTestObject(); differentObject.setGUID("Different"); assertFalse(getTestObject().equals(differentObject)); }