InputStream is = getClass().getResourceAsStream("/CalculatorServiceImpl.componentType");
XMLStreamReader reader = inputFactory.createXMLStreamReader(is);
ComponentType componentType = (ComponentType)staxProcessor.read(reader, context);
assertNotNull(componentType);
LocalBinding referenceSCABinding = (LocalBinding) componentType.getReferences().get(0).getBindings().get(0);
assertNotNull(referenceSCABinding);
LocalBinding serviceSCABinding = (LocalBinding) componentType.getServices().get(0).getBindings().get(0);
assertNotNull(serviceSCABinding);
//new PrintUtil(System.out).print(componentType);
}