TestWorkflow.configFile = "osworkflow-badfactory.xml";
TestWorkflow.configFile = "/osworkflow-badfactory.xml";
  public void testFactoryException()  {    TestWorkflow.configFile = "osworkflow-badfactory.xml";    //we expect an InternalWorkflowException (can't throw a checked exception in constructor, otherwise the ejb provider    //will break spec by having a constructor    try    {      TestWorkflow workflow = new TestWorkflow("testuser");      fail("bad factory did not throw an error");    }    catch(InternalWorkflowException ex)    {      assertTrue("Expected FactoryException, but instead got " + ex.getRootCause(), ex.getRootCause() instanceof FactoryException);    }  }