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

  ResourceListQuery query = new JobsListQuery();
  assertEquals(4, jobsListProvider.getList(JobsListProvider.LIST_STATUS, query).size());
  for (Entry<String, String> entry : jobsListProvider.getList(JobsListProvider.LIST_STATUS, query).entrySet()) {
    try {
      Job.Status.valueOf(entry.getKey());
    } catch (IllegalArgumentException ex) {
      fail("Can not parse job state");
    }
    assertTrue(StringUtils.startsWith(entry.getValue(), JobsListProvider.JOB_STATUS_FILTER_PREFIX));
  }
}