@Test
public void testWorkflowListName() throws ListProviderException, WorkflowDatabaseException {

  ResourceListQuery query = new JobsListQuery();
  assertEquals(workflowDefinitions.size(),
          jobsListProvider.getList(JobsListProvider.LIST_WORKFLOW, query).size());
  for (Entry<String, String> entry : jobsListProvider.getList(
          JobsListProvider.LIST_WORKFLOW, query).entrySet()) {
    boolean match = false;
    for (WorkflowDefinition wfD : workflowDefinitions) {
      if (StringUtils.equals(wfD.getId(), entry.getKey())
              && StringUtils.equals(wfD.getTitle(), entry.getValue())) {
        match = true;
        break;
      }
    }
    assertTrue(match);
  }
}