executor.submitTask(tasks1.toArray(new TaskTest[0]));
for (TaskTest task : tasks2) {
executor.submitTask(task);
}
executor.submitTask(tasks3.toArray(new TaskTest[0]));
waitForTaskExecutions();
test(canceledMethods, new ArrayList<TaskTest>());
test(handleExceptionMethods, new ArrayList<TaskTest>());