@Disabled(
    "NettyContext isDisposed() is not accurate\n"
        + "https://github.com/reactor/reactor-netty/issues/360")
@DisplayName("disposes context")
@Test
void dispose() {

  channel
      .map(CloseableChannel::new)
      .delayUntil(
          closeable -> {
            closeable.dispose();
            return closeable.onClose().log();
          })
      .as(StepVerifier::create)
      .assertNext(closeable -> assertThat(closeable.isDisposed()).isTrue())
      .verifyComplete();
}