ConstructorInjectionComponentAdapter c1 = new ConstructorInjectionComponentAdapter("1", Object.class);
ConstructorInjectionComponentAdapter c2 = new ConstructorInjectionComponentAdapter("2", String.class);
MutablePicoContainer picoContainer = createPicoContainer(null);
picoContainer.registerComponent(c1);
picoContainer.registerComponent(c2);
assertEquals("registration order should be maintained",
Arrays.asList(new Object[]{c1, c2}), picoContainer.getComponentAdapters());
picoContainer.getComponentInstances(); // create all the instances at once
assertFalse("instances should be created in same order as adapters are created",