* @throws Exception
*/
public void testLoadValidComposite() throws Exception {
XMLStreamReader reader = xmlFactory.createXMLStreamReader(new StringReader(COMPOSITE));
BPELImplementationProcessor bpelProcessor = new BPELImplementationProcessor(modelFactories);
while(true) {
int event = reader.next();
if(event == XMLStreamConstants.START_ELEMENT && IMPLEMENTATION_BPEL.equals(reader.getName())) {
break;
}
}
BPELImplementation implementation = bpelProcessor.read(reader);
assertNotNull(implementation);
assertEquals(new QName("http://tuscany.apache.org/implementation/bpel/example/helloworld", "HelloWorld"), implementation.getProcess());
}