@Test
public void testCompleteWorkflow_humanInteractionShouldReplaceValues() throws Exception {
addWorkflow("HIDemoWorkflow");
authenticateAsAdmin();
workflowService.startFlow("HIDemoWorkflow");
Task task = taskboxService.getOpenTasks().get(0);
Date date = new Date();
task.addOrReplaceProperty("test", date);
assertEquals("step1", task.getTaskType());
task.setName("test");
taskboxService.updateTask(task);
task = taskboxService.getOpenTasks().get(0);
assertEquals("test", task.getName());
taskboxService.finishTask(task);
task = taskboxService.getOpenTasks().get(0);
assertEquals(date, task.getProperty("test"));
assertEquals("step2", task.getTaskType());
taskboxService.finishTask(task);
assertThat(taskboxService.getOpenTasks().size(), is(0));
}