mock.expectedBodiesReceived(total);
mock.expectedHeaderReceived("total", total);
mock.expectedPropertyReceived(Exchange.AGGREGATED_SIZE, size);
// submit all tasks
service.invokeAll(tasks);
assertMockEndpointsSatisfied();
assertEquals(100, COUNTER.get());
// Need to shutdown the threadpool