@Test
public void removeChannelIfDisconnectedTest() {

    Assertions.assertNull(channel.getAttribute(CHANNEL_KEY));
    channel.setAttribute(CHANNEL_KEY, header);
    channel.close();
    HeaderExchangeChannel.removeChannelIfDisconnected(channel);
    Assertions.assertNull(channel.getAttribute(CHANNEL_KEY));
}