### Question:
ConnectorBroker { @Override public boolean equals(Object object) { if (this == object) { return true; } if (object == null || getClass() != object.getClass()) { return false; } ConnectorBroker that = (ConnectorBroker) object; return hashCode == that.hashCode; } ConnectorBroker();  ConnectorBroker(AuditLog   auditLog); void validateConnection(Connection    connection); void validateConnection(ConnectionProperties    connection); Connector getConnector(Connection connection); Connector getConnector(ConnectionProperties connection); int hashCode(); @Override boolean equals(Object object); @Override String toString();  }### Answer:
@Test public void testEquals() { ConnectorBroker testObject = new ConnectorBroker(); ConnectorBroker differentObject = new ConnectorBroker(); ConnectorBroker nullObject = null; String wrongClassObject = "pretendConnectorBroker"; assertTrue(testObject.equals(testObject)); assertFalse(testObject.equals(null)); assertFalse(testObject.equals(wrongClassObject)); assertFalse(testObject.equals(differentObject)); assertFalse(testObject.equals(nullObject)); }