### Question:
ConnectionProperties extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof ConnectionProperties)) { return false; } if (!super.equals(objectToCompare)) { return false; } ConnectionProperties that = (ConnectionProperties) objectToCompare; return Objects.equals(getConnectionBean(), that.getConnectionBean()); } ConnectionProperties(Connection  connectionBean);  ConnectionProperties(AssetDescriptor  parentAsset,
                                Connection       connectionBean);  ConnectionProperties(ConnectionProperties templateConnection);  ConnectionProperties(AssetDescriptor  parentAsset, ConnectionProperties templateConnection); String getDisplayName(); String getConnectionName(); String getDescription(); ConnectorTypeProperties getConnectorType(); String getUserId(); String getEncryptedPassword(); String getClearPassword(); EndpointProperties getEndpoint(); Map<String, Object> getConfigurationProperties(); @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())); ConnectionProperties sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }