@Test
void shouldEncodeUsingWellKnownAuthType() {

  ByteBuf byteBuf =
      AuthMetadataCodec.encodeMetadata(
          ByteBufAllocator.DEFAULT,
          WellKnownAuthType.SIMPLE,
          ByteBufAllocator.DEFAULT.buffer().writeShort(1).writeByte('u').writeByte('p'));
  checkSimpleAuthMetadataEncoding("u", "p", 1, 1, byteBuf);
}