@Test
void shouldThrowExceptionOnEmptyMetadata() {

  Assertions.assertThatThrownBy(() -> AuthMetadataCodec.readCustomAuthType(Unpooled.EMPTY_BUFFER))
      .hasMessage("Unable to decode custom Auth type. Not enough readable bytes");
}