// Test the SpringCompositeBuilder
SpringCompositeBuilder builder = new SpringCompositeBuilder();
builder.setWireService(wireService);
builder.setBuilderRegistry(registry);
CompositeComponent parent = createNiceMock(CompositeComponent.class);
DeploymentContext context = createNiceMock(DeploymentContext.class);
CompositeComponent component = (CompositeComponent) builder.build(parent, componentDefinition, context);
Service service = component.getService("fooService");
TestBean bean = (TestBean) service.getServiceInstance();
assertEquals("call foo", bean.echo("call foo"));
verify(registry);