WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor("file:unconditional-result.xml");
WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("/unconditional-result.xml").toString());
    public void testCheckResultInitialActionUnconditionalResult() throws Exception {      try      {        WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor("file:unconditional-result.xml");        descriptor.validate();        fail("descriptor loaded successfully, even though unconditional-result element is incorrect");      }      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");      }    }