@DisplayName("from returns RejectedException")
@Test
void fromRejectedException() {

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