@DisplayName("dispose gathers metrics")
@Test
void dispose() {

  new MicrometerDuplexConnection(
          CLIENT, delegate, meterRegistry, Tag.of("test-key", "test-value"))
      .dispose();
  assertThat(
          meterRegistry
              .get("rsocket.duplex.connection.dispose")
              .tag("connection.type", CLIENT.name())
              .tag("test-key", "test-value")
              .counter()
              .count())
      .isEqualTo(1);
}