@Test
void shouldBeValidFrameWithNoFragmentation1() {

  int maxFrameLength =
      ThreadLocalRandom.current().nextInt(64, FrameLengthCodec.FRAME_LENGTH_MASK);
  byte[] data =
      new byte[maxFrameLength - FRAME_LENGTH_SIZE - Integer.BYTES - FrameHeaderCodec.size()];
  ThreadLocalRandom.current().nextBytes(data);
  final Payload payload = DefaultPayload.create(data);
  Assertions.assertThat(PayloadValidationUtils.isValid(0, maxFrameLength, payload, false))
      .isTrue();
  Assertions.assertThat(PayloadValidationUtils.isValid(0, maxFrameLength, payload, true))
      .isTrue();
}