VastXmlManagerAggregator extends AsyncTask<String, Void, List<VastXmlManager>> { @Deprecated void setTimesFollowedVastRedirect(final int timesFollowedVastRedirect) { mTimesFollowedVastRedirect = timesFollowedVastRedirect; } VastXmlManagerAggregator(final VastXmlManagerAggregatorListener vastXmlManagerAggregatorListener);   }
@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: assertThat(vastXmlManagers.get(0).getClickThroughUrl()).isEqualTo(null); assertThat(vastXmlManagers.get(0).getImpressionTrackers().size()).isEqualTo(4); assertThat(vastXmlManagers.get(0).getVideoFirstQuartileTrackers().size()).isEqualTo(1); }