@Test
void shouldThrowExceptionOnMalformedMetadata_length() {

  Assertions.assertThatThrownBy(
          () ->
              AuthMetadataCodec.readCustomAuthType(
                  ByteBufAllocator.DEFAULT.buffer().writeByte(127).writeChar('a').writeChar('b')))
      .hasMessage("Unable to decode custom Auth type. Malformed length or auth type string");
}