// lets force the JBI container to be constructed first
Descriptor root = (Descriptor) context.getBean("jbi");
assertNotNull("JBI Container not found in spring!", root);
// component stuff
Component component = root.getComponent();
assertNotNull("component is null", component);
assertEquals("getBootstrapClassName", "com.foo.Engine1Bootstrap", component.getBootstrapClassName());
assertEquals("getComponentClassName", "com.foo.Engine1", component.getComponentClassName());
assertEquals("getComponentClassPath", new ClassPath(new String[] {"Engine1.jar"}), component.getComponentClassPath());
assertEquals("getBootstrapClassPath", new ClassPath(new String[] {"Engine2.jar"}), component.getBootstrapClassPath());
assertEquals("getDescription", "foo", component.getDescription());
assertArrayEquals("getSharedLibraries", new SharedLibraryList[] {new SharedLibraryList("slib1")}, component.getSharedLibraries());
Identification identification = component.getIdentification();
assertNotNull("identification is null", identification);
assertEquals("getName", "example-engine-1", identification.getName());
assertEquals("getDescription", "An example service engine", identification.getDescription());
InstallationDescriptorExtension descriptorExtension = component.getDescriptorExtension();
assertNotNull("descriptorExtension is null", descriptorExtension);
DocumentFragment fragment = descriptorExtension.getDescriptorExtension();
assertNotNull("fragment is null", fragment);