### Question:
MultipleResourceHttpFetcher { public List<Pair<Uri, FutureTask<RequestContext>>> fetchAll(List<HttpRequest> requests) { List<Pair<Uri, FutureTask<RequestContext>>> futureTasks = Lists.newArrayList(); for (HttpRequest request : requests) { futureTasks.add(Pair.of(request.getUri(), createHttpFetcher(request))); } return futureTasks; } MultipleResourceHttpFetcher(RequestPipeline requestPipeline, Executor executor); List<Pair<Uri, FutureTask<RequestContext>>> fetchAll(List<HttpRequest> requests); Map<Uri, FutureTask<RequestContext>> fetchUnique(List<HttpRequest> requests);  }### Answer:
@Test public void testFetchAll() throws Exception { List<HttpRequest> requests = createRequestArray(); expect(requestPipeline.execute(eq(reqCxt1.getHttpReq()))).andReturn(reqCxt1.getHttpResp()); expect(requestPipeline.execute(eq(reqCxt2.getHttpReq()))).andReturn(reqCxt2.getHttpResp()); expect(requestPipeline.execute(eq(reqCxt3.getHttpReq()))).andReturn(reqCxt3.getHttpResp()); replay(); List<Pair<Uri, FutureTask<RequestContext>>> futureTasks = fetcher.fetchAll(requests); assertEquals(3, futureTasks.size()); assertEquals(IMG_URI, futureTasks.get(0).one); assertEquals(reqCxt1, futureTasks.get(0).two.get()); assertEquals(CSS_URI, futureTasks.get(1).one); assertEquals(reqCxt2, futureTasks.get(1).two.get()); assertEquals(IMG_URI, futureTasks.get(2).one); assertEquals(reqCxt3, futureTasks.get(2).two.get()); verify(); }