tasks = filterService.listPage(filter.getId(), query, 1, 2);
assertEquals(2, tasks.size());
TaskQuery extendingQuery = taskService.createTaskQuery();
extendingQuery.taskDelegationState(DelegationState.RESOLVED);
tasks = filterService.listPage(filter.getId(), extendingQuery, 1, 2);
assertEquals(1, tasks.size());
assertEquals(DelegationState.RESOLVED, tasks.get(0).getDelegationState());