@Test
public void initialBitrateEstimateOverwrite_forOffline_whileOffline_setsInitialEstimate() {

  setActiveNetworkInfo(networkInfoOffline);
  DefaultBandwidthMeter bandwidthMeter =
      new DefaultBandwidthMeter.Builder(ApplicationProvider.getApplicationContext())
          .setInitialBitrateEstimate(C.NETWORK_TYPE_OFFLINE, 123456789)
          .build();
  long initialEstimate = bandwidthMeter.getBitrateEstimate();
  assertThat(initialEstimate).isEqualTo(123456789);
}