@Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (this.connectionId == null ? 0 : this.connectionId.hashCode());
        result = prime * result + (this.host == null ? 0 : this.host.hashCode());
        result = prime * result + this.port;
        return result;
    }
@Test
    public void testEqual2() {
        ConnectionId id1 = new ConnectionId("host", 1202, "id");
        ConnectionId id2 = new ConnectionId("host", 1202, "id");

        assertEquals(id1.hashCode(), id2.hashCode(), "Hash code must be equal");
    }