@Test
public void testDiscardUpstreamBeforeRead() {

  writeTestData();
  sampleQueue.discardUpstreamSamples(4);
  assertAllocationCount(4);
  assertReadTestData(null, 0, 4);
  assertReadFormat(false, FORMAT_2);
  assertNoSamplesToRead(FORMAT_2);
}