@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());
}