WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/duplicate-action.xml").toString());
WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getResource("/samples/invalid/duplicate-action.xml").toString());
    public void testDuplicateActionID() throws Exception {        try {            WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/duplicate-action.xml").toString());            descriptor.validate();            fail("descriptor loaded successfully, even though duplicate action exists");        } catch (InvalidWorkflowDescriptorException e) {            //the descriptor is invalid, which is correct        } catch (Exception ex) {            ex.printStackTrace();            fail("descriptor failed to load as expected, but a " + ex.getClass() + " exception was caught instead of InvalidWorkflowDescriptorException");        }    }