private static final Log log = LogFactory.getLog(InterceptorChainTest.class);
public void testConcurrentAddRemove() throws Exception {
ComponentMetadataRepo componentMetadataRepo = new ComponentMetadataRepo();
componentMetadataRepo.initialize(Collections.<ModuleMetadataFileFinder>emptyList(), InterceptorChainTest.class.getClassLoader());
InterceptorChain ic = new InterceptorChain(componentMetadataRepo);
ic.setFirstInChain(new CallInterceptor());
ic.addInterceptor(new ActivationInterceptor(), 1);
CyclicBarrier barrier = new CyclicBarrier(4);
List<Future<Void>> futures = new ArrayList<Future<Void>>(2);