@DisplayName("from returns CanceledException")
@Test
void fromCanceledException() {

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