CompositeComponent parent = createNiceMock(CompositeComponent.class);
DeploymentContext context = createNiceMock(DeploymentContext.class);
SpringCompositeComponent component =
(SpringCompositeComponent) builder.build(parent, componentDefinition, context);
TestBean bean = (TestBean) component.getApplicationContext().getBean("foo");
assertEquals("call foo", bean.echo("call foo"));
}
/**
* Verifies that the builder calls back into the registry to load services and wires them to bean targets when no
* <code>sca:service</code> tag is specified in the Spring application.xml