public class ComponentTypeLoaderTestCase extends LoaderTestSupport {
public void testMinimal() throws XMLStreamException, ConfigurationLoadException {
XMLStreamReader reader = getReader("<componentType xmlns='http://www.osoa.org/xmlns/sca/0.9'><service name='service1'/></componentType>");
ComponentType type = (ComponentType) registry.load(reader, loaderContext);
type.initialize(null);
assertNotNull(type);
assertEquals(1, type.getServices().size());
Service service = type.getService("service1");
assertEquals("service1", service.getName());
assertEquals(XMLStreamConstants.END_DOCUMENT, reader.next());