/**
* test for task inclusion/exclusion (no other filters, no sort)
*/
public void testQueryExcludeSubtasks() throws Exception {
// query all tasks, including subtasks
TaskQuery query = taskService.createTaskQuery();
assertEquals(10, query.count());
assertEquals(10, query.list().size());
// query only parent tasks (exclude subtasks)
query = taskService.createTaskQuery().excludeSubtasks();
assertEquals(3, query.count());
assertEquals(3, query.list().size());
}