barrier.await(); // wait for all threads to be ready
barrier.await(); // wait for all threads to finish
log.debug("All threads finished, let's shutdown the executor and check whether any exceptions were reported");
for (Future<Void> future : futures) future.get();
} finally {
executorService.shutdownNow();
}
assert ic.containsInterceptorType(CallInterceptor.class);
assert ic.containsInterceptorType(ActivationInterceptor.class);
assert ic.containsInterceptorType(CacheMgmtInterceptor.class);
assert ic.containsInterceptorType(DistCacheStoreInterceptor.class);