@Test
public void testShouldNeverContinueLoading_ifMaxBufferReachedAndNotPrioritizeTimeOverSize() {

  builder.setPrioritizeTimeOverSizeThresholds(false);
  createDefaultLoadControl();
  // Put loadControl in buffering state.
  assertThat(loadControl.shouldContinueLoading(/* bufferedDurationUs= */ 0, SPEED)).isTrue();
  makeSureTargetBufferBytesReached();
  assertThat(loadControl.shouldContinueLoading(/* bufferedDurationUs= */ 0, SPEED)).isFalse();
  assertThat(loadControl.shouldContinueLoading(MIN_BUFFER_US, SPEED)).isFalse();
  assertThat(loadControl.shouldContinueLoading(MAX_BUFFER_US, SPEED)).isFalse();
}