@Test
void shouldBeValidFrameWithNoFragmentation3() {

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