@Test
public void testWriteWithVideoData1() {

  packetBuffer.setOutputStreamFactory((file, append) -> os);
  completeVideoSequence(
      new byte[] {0x01, 0x02, 0x03, 0x01, 0x02, 0x03, 0x01, 0x02, 0x03, 0x01, 0x02, 0x03});
  assertThat(
      os.toByteArray(), is(new byte[] {0x01, 0x02, 0x03, 0x01, 0x02, 0x03, 0x01, 0x02, 0x03}));
}