@Test
public void testContinueLoadingReturnTrueIfLoaderBehindPlaybackPositionCanMakeProgress() {

  FakeSequenceableLoader loader1 =
      new FakeSequenceableLoader(/* bufferedPositionUs */ 1000, /* nextLoadPositionUs */ 2000);
  FakeSequenceableLoader loader2 =
      new FakeSequenceableLoader(/* bufferedPositionUs */ 1001, /* nextLoadPositionUs */ 2001);
  // loader2 is not the furthest behind, but it can make progress if allowed.
  loader2.setNextChunkDurationUs(1000);
  CompositeSequenceableLoader compositeSequenceableLoader = new CompositeSequenceableLoader(
      new SequenceableLoader[] {loader1, loader2});
  assertThat(compositeSequenceableLoader.continueLoading(3000)).isTrue();
}