### Question:
EmbeddedConnectionProperties extends AssetPropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof EmbeddedConnectionProperties)) { return false; } if (!super.equals(objectToCompare)) { return false; } EmbeddedConnectionProperties that = (EmbeddedConnectionProperties) objectToCompare; return Objects.equals(getEmbeddedConnectionBean(), that.getEmbeddedConnectionBean()); } EmbeddedConnectionProperties(EmbeddedConnection embeddedConnectionBean);  EmbeddedConnectionProperties(AssetDescriptor    parentAsset,
                                        EmbeddedConnection embeddedConnectionBean);  EmbeddedConnectionProperties(AssetDescriptor parentAsset, EmbeddedConnectionProperties template); int getPosition(); String getDisplayName(); ConnectionProperties getConnectionProperties(); Map<String, Object> getArguments(); @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())); EmbeddedConnectionProperties sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }