@Test
public void testStart_updatesAdPlaybackState() {

  setupPlayback(CONTENT_TIMELINE, PREROLL_ADS_DURATIONS_US, PREROLL_CUE_POINTS_SECONDS);
  imaAdsLoader.start(adsLoaderListener, adViewProvider);
  assertThat(adsLoaderListener.adPlaybackState)
      .isEqualTo(
          new AdPlaybackState(/* adGroupTimesUs= */ 0)
              .withAdDurationsUs(PREROLL_ADS_DURATIONS_US)
              .withContentDurationUs(CONTENT_DURATION_US));
}