@DisplayName("from returns ConnectionCloseException")
@Test
void fromConnectionCloseException() {

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