WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/common-actions-bad.xml").toString());
WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getResource("/samples/invalid/common-actions-bad.xml").toString());
    public void testCommonActions() throws Exception {        try {            WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/common-actions.xml").toString());            descriptor.validate();        } catch (InvalidWorkflowDescriptorException e) {            e.printStackTrace();            fail("Descriptor did not recognized common-actions!");        }        try {            WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/common-actions-bad.xml").toString());            descriptor.validate();            fail("Invalid common-actions not detected correctly");        } catch (InvalidWorkflowDescriptorException e) {        }    }