public void testGetAvailableWorkflowVOList() throws Exception
{
List workflows = WorkflowController.getController().getAvailableWorkflowVOList(getUserPrincipal());
assertEquals("Wrong number of available workflows:", 2, workflows.size());
WorkflowVO workflow = findWorkflowByName(workflows);
assertNull("There should not be a workflow ID", workflow.getWorkflowId());
assertEquals("Wrong name:", getWorkflowName(), workflow.getName());
assertEquals("Wrong number of declared steps:", 3, workflow.getDeclaredSteps().size());
assertTrue("There should be no current steps:", workflow.getCurrentSteps().isEmpty());
assertTrue("There should be no history steps:", workflow.getHistorySteps().isEmpty());
assertTrue("There should be no steps:", workflow.getSteps().isEmpty());
assertTrue("There should be no available actions:", workflow.getAvailableActions().isEmpty());
assertTrue("There should be no global actions:", workflow.getGlobalActions().isEmpty());
}