@Test
public void testContinueLoadingOnlyNotAllowEndOfSourceLoaderToLoad() {

  FakeSequenceableLoader loader1 =
      new FakeSequenceableLoader(
          /* bufferedPositionUs */ 1000, /* nextLoadPositionUs */ C.TIME_END_OF_SOURCE);
  FakeSequenceableLoader loader2 =
      new FakeSequenceableLoader(
          /* bufferedPositionUs */ 1001, /* nextLoadPositionUs */ C.TIME_END_OF_SOURCE);
  CompositeSequenceableLoader compositeSequenceableLoader = new CompositeSequenceableLoader(
      new SequenceableLoader[] {loader1, loader2});
  compositeSequenceableLoader.continueLoading(3000);
  assertThat(loader1.numInvocations).isEqualTo(0);
  assertThat(loader2.numInvocations).isEqualTo(0);
}