@Test
public void testEqualFormatsDeduplicated() {

  sampleQueue.format(FORMAT_1);
  assertReadFormat(false, FORMAT_1);
  // If the same format is written then it should not cause a format change on the read side.
  sampleQueue.format(FORMAT_1);
  assertNoSamplesToRead(FORMAT_1);
  // The same applies for a format that's equal (but a different object).
  sampleQueue.format(FORMAT_1_COPY);
  assertNoSamplesToRead(FORMAT_1);
}