### Question:
EmbeddedConnection extends PropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof EmbeddedConnection)) { return false; } EmbeddedConnection that = (EmbeddedConnection) objectToCompare; return Objects.equals(getDisplayName(), that.getDisplayName()) && Objects.equals(getArguments(), that.getArguments()) && Objects.equals(getEmbeddedConnection(), that.getEmbeddedConnection()); } EmbeddedConnection();  EmbeddedConnection(EmbeddedConnection template); int getPosition(); void setPosition(int position); String getDisplayName(); void setDisplayName(String displayName); Map<String, Object> getArguments(); void setArguments(Map<String, Object> arguments); Connection getEmbeddedConnection(); void setEmbeddedConnection(Connection embeddedConnection); @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())); EmbeddedConnection sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); EmbeddedConnection differentObject = getTestObject(); differentObject.setDisplayName("Different"); assertFalse(getTestObject().equals(differentObject)); }