@Test
public void testBuildModel() {
try{
InputStream is = getClass().getResourceAsStream("/Calculator.composite");
CompositeProcessor compositeReader = new CompositeProcessor(new ContributionFactoryImpl(), assemblyFactory, policyFactory, mapper, staxProcessor);
XMLStreamReader reader = inputFactory.createXMLStreamReader(is);
Composite composite = compositeReader.read(reader);
is.close();
Assert.assertNotNull(composite);
resolver.addModel(composite);
compositeReader.resolve(composite, resolver);
CompositeBuilderImpl compositeBuilder = new CompositeBuilderImpl(assemblyFactory, scaBindingFactory, mapper, null);
compositeBuilder.build(composite);
SCABinding referenceSCABinding = (SCABinding) composite.getComponents().get(0).getReferences().get(0).getBindings().get(0);