public void callMainMethods() throws InterruptedException, BrokenBarrierException
{
// Needed to make sure that all threads start at the same time
startSignal.await();
final Object key = new Object();
assertNotNull(container.registerComponentInstance(key, new MyClass()));
assertNotNull(container.getComponentAdapter(key));
assertFalse(container.getComponentAdapters().isEmpty());
assertFalse(container.getComponentAdaptersOfType(MyClass.class).isEmpty());
assertNotNull(container.getComponentInstance(key));
assertNotNull(container.getComponentInstanceOfType(MyClass.class));