int grainSize = 5;
BlockedRange range = new BlockedRange(start, end, grainSize);
Parallel parallel = new Parallel();
SummationTask task = new SummationTask(parallel, range);
parallel.parallelFor(task);
Object obj = parallel.getResult();
assertTrue(obj instanceof Integer);
assertEquals(55, ((Integer) obj).intValue());
}