}
@Test
public void testReadComposite() throws Exception {
InputStream is = getClass().getResourceAsStream("TestAllCalculator.composite");
Composite composite = (Composite)staxProcessor.read(inputFactory.createXMLStreamReader(is), context);
assertNotNull(composite);
assertEquals(composite.getName(), new QName("http://calc", "TestAllCalculator"));
assertTrue(composite.isLocal());
assertFalse(composite.getAutowire() == Boolean.TRUE);
assertEquals(((PolicySubject)composite).getRequiredIntents().get(0).getName(), new QName("http://test",
"confidentiality"));
assertEquals(((PolicySubject)composite).getPolicySets().get(0).getName(), new QName("http://test", "SecureReliablePolicy"));
Composite include = composite.getIncludes().get(0);
assertEquals(include.getName(), new QName("http://calc", "TestAllDivide"));
CompositeService calcCompositeService = (CompositeService)composite.getServices().get(0);
assertEquals(calcCompositeService.getName(), "CalculatorService");
assertTrue(calcCompositeService.getPromotedService().isUnresolved());
assertEquals(calcCompositeService.getPromotedService().getName(),