Request r = new Request(start,end);
Set<FeedProvider> providers = new HashSet<FeedProvider>();
Map<FeedProvider,Request> expectedMaxValues = new HashMap<FeedProvider,Request>();
Set<Request> expectedRequests = new HashSet<Request>();
for (int i = 0; i < maxTimes.length; i++) {
FeedProvider fp = Mockito.mock(FeedProvider.class);
Mockito.when(fp.getValidDataExtent()).thenReturn(maxTimes[i]);
Mockito.when(fp.getMaximumSampleRate()).thenReturn(1);
Mockito.when(fp.getSubscriptionId()).thenReturn("feed"+i);
providers.add(fp);
expectedMaxValues.put(fp, new Request(start,expectedTimes[i]));
expectedRequests.add(new Request(start, expectedTimes[i]));
}
requestSet.put(r, providers);