@Test
public void testValidWorkflowUnamrashalling() throws JAXBException, SAXException {
Unmarshaller unmarshaller = JAXBContext.newInstance(
org.apache.falcon.oozie.workflow.WORKFLOWAPP.class).createUnmarshaller();
SchemaFactory schemaFactory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
Schema schema = schemaFactory.newSchema(this.getClass().getResource("/oozie-workflow-0.3.xsd"));
unmarshaller.setSchema(schema);
JAXBElement<WORKFLOWAPP> workflowApp = (JAXBElement<WORKFLOWAPP>) unmarshaller.unmarshal(
WorkflowUnmarshallingTest.class
.getResourceAsStream("/oozie/xmls/workflow.xml"));
WORKFLOWAPP app = workflowApp.getValue();