// check parse of <service>
Map<String, ServiceDefinition> services = composite.getDeclaredServices();
assertEquals(1, services.size()); // included doesn't count
services = composite.getServices();
assertEquals(2, services.size()); // included counts
BoundServiceDefinition serviceDefinition = (BoundServiceDefinition) services.get("service");
assertNotNull(serviceDefinition);
assertEquals("service", serviceDefinition.getName());
assertEquals(BasicInterface.class, serviceDefinition.getServiceContract().getInterfaceClass());
assertTrue(serviceDefinition.getBinding() instanceof SystemBinding);
// check parse of <component>
Map<String, ComponentDefinition<? extends Implementation<?>>> components = composite.getDeclaredComponents();
assertEquals(1, components.size()); // included doesn't count
components = composite.getComponents();