@Test
public void processVast_shouldNotFollowRedirectsOnceTheLimitHasBeenReached() throws Exception {

    mFakeHttpLayer.addPendingHttpResponse(200, TEST_NESTED_VAST_XML_STRING);
    subject.setTimesFollowedVastRedirect(VastXmlManagerAggregator.MAX_TIMES_TO_FOLLOW_VAST_REDIRECT);
    subject.execute(TEST_VAST_XML_STRING);
    semaphore.acquire();
    assertThat(vastXmlManagers.size()).isEqualTo(1);
    assertThat(vastXmlManagers.get(0).getMediaFileUrl()).isEqualTo("https://s3.amazonaws.com/mopub-vast/tapad-video1.mp4");
    assertThat(vastXmlManagers.get(0).getClickThroughUrl()).isEqualTo(null);
    assertThat(vastXmlManagers.get(0).getImpressionTrackers().size()).isEqualTo(4);
    assertThat(vastXmlManagers.get(0).getVideoFirstQuartileTrackers().size()).isEqualTo(1);
}