### Question:
ConcurrentPreloads extends ForwardingCollection<PreloadedData> { private Collection<PreloadedData> getData() { return Lists.transform(tasks, new Function<Future<PreloadedData>, PreloadedData>() { public PreloadedData apply(Future<PreloadedData> preloadedDataFuture) { return getPreloadedData(preloadedDataFuture); } }); } ConcurrentPreloads();   ConcurrentPreloads(int size);   }### Answer:
@Test public void getData() throws Exception { ConcurrentPreloads preloads = new ConcurrentPreloads(); preloads.add(TestFuture.returnsNormal("foo")); preloads.add(TestFuture.returnsNormal("bar")); assertEquals(2, preloads.size()); Iterator<PreloadedData> iterator = preloads.iterator(); assertEquals(TestFuture.expectedResult("foo"), iterator.next().toJson()); assertEquals(TestFuture.expectedResult("bar"), iterator.next().toJson()); assertFalse(iterator.hasNext()); }