// Completing the task using the predefined process variable (normally done through the form)
TaskService taskService = activitiRule.getTaskService();
taskService.complete(task.getId(), CollectionUtil.singletonMap(FeedbackStepDefinitionConverter.VARIABLE_FEEDBACK_PROVIDERS, Arrays.asList("gonzo", "fozzie")));
// Three tasks should be available now
assertEquals(3, taskService.createTaskQuery().count());
assertEquals(1, taskService.createTaskQuery().taskAssignee("kermit").count());
assertEquals(1, taskService.createTaskQuery().taskAssignee("gonzo").count());
assertEquals(1, taskService.createTaskQuery().taskAssignee("fozzie").count());
// Completing the feedback tasks first should only leave the 'gather feedback' task for kermit open