@Test
public void testCaseStatement() {

    WorkflowDef def = createConditionalWF();
    Workflow wf = new Workflow();
    wf.setWorkflowDefinition(def);
    wf.setCreateTime(0L);
    wf.setWorkflowId("a");
    wf.setCorrelationId("b");
    wf.setStatus(WorkflowStatus.RUNNING);
    DeciderOutcome outcome = deciderService.decide(wf);
    List<Task> scheduledTasks = outcome.tasksToBeScheduled;
    assertNotNull(scheduledTasks);
    assertEquals(2, scheduledTasks.size());
    assertEquals(Status.IN_PROGRESS, scheduledTasks.get(0).getStatus());
    assertEquals(Status.SCHEDULED, scheduledTasks.get(1).getStatus());
}