@DisplayName("from returns InvalidSetupException")
@Test
void fromInvalidSetupException() {

  ByteBuf byteBuf = createErrorFrame(0, INVALID_SETUP, "test-message");
  assertThat(Exceptions.from(0, byteBuf))
      .isInstanceOf(InvalidSetupException.class)
      .hasMessage("test-message");
  assertThat(Exceptions.from(1, byteBuf))
      .hasMessage(
          "Invalid Error frame in Stream ID 1: 0x%08X '%s'", INVALID_SETUP, "test-message")
      .isInstanceOf(IllegalArgumentException.class);
}