@Test
public void videoProgressCheckerRunnableRun_whenDurationIsInvalid_shouldNotMakeAnyNetworkCalls() throws Exception {

    stub(mediaPlayer.getDuration()).toReturn(0);
    stub(mediaPlayer.getCurrentPosition()).toReturn(100);
    VastVideoConfiguration vastVideoConfiguration = new VastVideoConfiguration();
    vastVideoConfiguration.setDiskMediaFileUrl("disk_video_path");
    bundle.putSerializable(VAST_VIDEO_CONFIGURATION, vastVideoConfiguration);
    initializeSubject();
    setMediaPlayer(mediaPlayer);
    subject.onResume();
    assertThat(Robolectric.getUiThreadScheduler().enqueuedTaskCount()).isEqualTo(2);
    Robolectric.getUiThreadScheduler().runOneTask();
    // make sure the repeated task hasn't run yet
    assertThat(Robolectric.getUiThreadScheduler().enqueuedTaskCount()).isEqualTo(1);
    Thread.sleep(NETWORK_DELAY);
    assertThat(Robolectric.httpRequestWasMade()).isFalse();
}