XMLStreamReader reader = inputFactory.createXMLStreamReader(is);
Composite composite = (Composite) staxProcessor.read(reader);
assertNotNull(composite);
compositeBuilder.build(composite);
JEEImplementationImpl implementation = (JEEImplementationImpl) composite.getComponents().get(0).getImplementation();
assertTrue(implementation.getArchive().equals("myarchive.ear"));
PolicySet policySet = implementation.getPolicySets().get(0);
assertEquals(new QName("http://sample/test-policy", "allowRole1"), policySet.getName());
}