assertEquals(1, tasks.size());
assertEquals("make profit", tasks.get(0).getName());
// Test the task query find-by-candidate-group operation
TaskQuery query = taskService.createTaskQuery();
assertEquals(1, query.taskCandidateGroup("management").count());
assertEquals(1, query.taskCandidateGroup("accountancy").count());
}
// Test where the candidate user extension is used together
// with the spec way of defining candidate users