@Test
public void prepareVastVideoConfiguration_shouldReturnCorrectVastValuesWhenAVastRedirectFails() throws Exception {

    // Vast redirect response
    mFakeHttpLayer.addPendingHttpResponse(404, "");
    // Video download response
    mFakeHttpLayer.addPendingHttpResponse(200, "video_data");
    prepareVastVideoConfiguration();
    semaphore.acquire();
    verify(vastManagerListener).onVastVideoConfigurationPrepared(any(VastVideoConfiguration.class));
    assertThat(vastVideoConfiguration.getNetworkMediaFileUrl()).isEqualTo("https://s3.amazonaws.com/mopub-vast/tapad-video1.mp4");
    final String expectedFilePathDiskCache = CacheService.getFilePathDiskCache(vastVideoConfiguration.getNetworkMediaFileUrl());
    assertThat(vastVideoConfiguration.getDiskMediaFileUrl()).isEqualTo(expectedFilePathDiskCache);
    assertThat(vastVideoConfiguration.getClickThroughUrl()).isEqualTo(null);
    assertThat(vastVideoConfiguration.getImpressionTrackers().size()).isEqualTo(4);
    assertThat(vastVideoConfiguration.getFirstQuartileTrackers().size()).isEqualTo(1);
}