@Test
void shouldBeValidFrameWithNoFragmentation0() {

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