@Test
public void testAdvanceToBeforeBuffer() {

  writeTestData();
  int skipCount = sampleQueue.advanceTo(SAMPLE_TIMESTAMPS[0] - 1);
  // Should have no effect (we're already at the first frame).
  assertThat(skipCount).isEqualTo(0);
  assertReadTestData();
  assertNoSamplesToRead(FORMAT_2);
}