AmqpClient extends Client { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; AmqpClient that = (AmqpClient) o; return Objects.equals(exchange, that.exchange) && Objects.equals(uri, that.uri) && Objects.equals(exchangeType, that.exchangeType) && Objects.equals(routingKey, that.routingKey); } AmqpClient(
            @JsonProperty("id") String id,
            @JsonProperty("uri") String uri,
            @JsonProperty("exchange") String exchange,
			@JsonProperty("exchangeType") String exchangeType,
			@JsonProperty("routingKey") String routingKey); String getUri(); String getExchange(); String getExchangeType(); String getRoutingKey(); @Override boolean equals(Object o); @Override int hashCode(); @Override R accept(ClientVisitor<P, R> visitor, P param); static final String CLIENT_TYPE; }
@Test public final void testEquals() { AmqpClient client1 = new AmqpClient("0", "host1", "exchange", "topic", "x.y.z"); AmqpClient client2 = new AmqpClient("0", "host1", "exchange", "topic", "x.y.z"); AmqpClient client3 = new AmqpClient("0", "host2", "exchange", "topic", "x.y.z"); AmqpClient client4 = new AmqpClient("0", "host1", "exchange-other", "topic", "x.y.z"); AmqpClient client5 = new AmqpClient("1", "host1", "exchange", "topic", "x.y.z"); 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()); }