@Test(expected = RepositoryException.class)
  public void testGetWorkflowTaskByIdNoDataSource() throws RepositoryException {
    DataSourceWorkflowRepository repo = new DataSourceWorkflowRepository(null);
    WorkflowTask workflow = repo.getWorkflowTaskById("1");

    assertThat(workflow, notNullValue());
    assertThat(workflow.getTaskName(), equalTo("Test"));
  }
  @Test
  public void testGetWorkflowTaskById() throws RepositoryException {
    DataSourceWorkflowRepository repo = new DataSourceWorkflowRepository(ds);
    WorkflowTask workflow = repo.getWorkflowTaskById("1");

    assertThat(workflow, notNullValue());
    assertThat(workflow.getTaskName(), equalTo("Test Task"));
  }