@Test
public void testIsReadyReturnsTrueForClearSampleAndPlayClearSamplesWithoutKeysIsTrue() {

  when(mockDrmSession.playClearSamplesWithoutKeys()).thenReturn(true);
  // We recreate the queue to ensure the mock DRM session manager flags are taken into account.
  sampleQueue = new SampleQueue(allocator, mockDrmSessionManager);
  writeTestDataWithEncryptedSections();
  assertThat(sampleQueue.isReady(/* loadingFinished= */ false)).isTrue();
}