@Test
public void testGetNextLoadPositionUsReturnMinimumNonEndOfSourceLoaderNextLoadPositionUs() {

  FakeSequenceableLoader loader1 =
      new FakeSequenceableLoader(/* bufferedPositionUs */ 1000, /* nextLoadPositionUs */ 2000);
  FakeSequenceableLoader loader2 =
      new FakeSequenceableLoader(/* bufferedPositionUs */ 1001, /* nextLoadPositionUs */ 2001);
  FakeSequenceableLoader loader3 =
      new FakeSequenceableLoader(
          /* bufferedPositionUs */ 1001, /* nextLoadPositionUs */ C.TIME_END_OF_SOURCE);
  CompositeSequenceableLoader compositeSequenceableLoader = new CompositeSequenceableLoader(
      new SequenceableLoader[] {loader1, loader2, loader3});
  assertThat(compositeSequenceableLoader.getNextLoadPositionUs()).isEqualTo(2000);
}