HttpClient extends Client { @Override public boolean equals(Object other) { if (!super.equals(other)) return false; HttpClient client = (HttpClient) other; return Objects.equal(callbackUrl, client.callbackUrl) && Objects.equal(sendData, client.sendData); } @JsonCreator  HttpClient(
			@JsonProperty("id") String id,
			@JsonProperty("callbackUrl") String callbackUrl,
			@JsonProperty("sendData") boolean sendData); String getCallbackUrl(); boolean getSendData(); @Override boolean equals(Object other); @Override int hashCode(); @Override R accept(ClientVisitor<P,R> visitor, P param); static final String CLIENT_TYPE; }
@Test public final void testEquals() { HttpClient client1 = new HttpClient("0", "url1", true); HttpClient client2 = new HttpClient("0", "url1", true); HttpClient client3 = new HttpClient("0", "url2", true); HttpClient client4 = new HttpClient("0", "url1", false); HttpClient client5 = new HttpClient("1", "url1", true); assertEquals(client1, client1); assertEquals(client1, client2); assertNotEquals(client1, client3); assertNotEquals(client1, client4); assertNotEquals(client1, client5); assertNotEquals(client1, null); assertNotEquals(client1, new Object()); assertEquals(client1.hashCode(), client1.hashCode()); assertEquals(client1.hashCode(), client2.hashCode()); assertNotEquals(client1.hashCode(), client3.hashCode()); assertNotEquals(client1.hashCode(), client4.hashCode()); assertNotEquals(client1.hashCode(), client5.hashCode()); }