@Test
void shouldEncodeUsingWellKnownAuthType2() {

  ByteBuf byteBuf =
      AuthMetadataCodec.encodeMetadata(
          ByteBufAllocator.DEFAULT,
          WellKnownAuthType.BEARER,
          Unpooled.copiedBuffer(TEST_BEARER_TOKEN, CharsetUtil.UTF_8));
  byteBuf.markReaderIndex();
  checkBearerAuthMetadataEncoding(TEST_BEARER_TOKEN, byteBuf);
  byteBuf.resetReaderIndex();
  checkBearerAuthMetadataEncodingUsingDecoders(TEST_BEARER_TOKEN, byteBuf);
}