@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        HeaderExchangeChannel other = (HeaderExchangeChannel) obj;
        return channel.equals(other.channel);
    }
@Test
    void equalsTest() {
        Assertions.assertThrows(IllegalArgumentException.class, () -> {
            Assertions.assertEquals(header, new HeaderExchangeChannel(channel));
            header = new HeaderExchangeChannel(null);
            Assertions.assertNotEquals(header, new HeaderExchangeChannel(channel));
        });
    }