@Test
public void equalsTest() {

    Assertions.assertThrows(IllegalArgumentException.class, () -> {
        Assertions.assertEquals(header, new HeaderExchangeChannel(channel));
        header = new HeaderExchangeChannel(null);
        Assertions.assertNotEquals(header, new HeaderExchangeChannel(channel));
    });
}