ExecutorService executorService = Executors.newFixedThreadPool(concurrentClients);
try {
List<Future<ExampleDomainObjectWithoutSetters>> results = executorService.invokeAll(callableCollection);
for (Future<ExampleDomainObjectWithoutSetters> future : results) {
ExampleDomainObjectWithoutSetters result = future.get();
Assert.assertNotNull(result.getA());
Assert.assertNotNull(result.getB());
Assert.assertNotNull(result.getC());
}
} finally {
executorService.shutdown();
}
}