}
@Test
public void testProcessFormSubmissionCandidateAndChildTasks() throws Exception {
long taskId = 100;
Task task = new Task("task100");
task.setId(taskId);
when(mockTaskManager.get(taskId)).thenReturn(task);
TaskChildCandidatesDTO dto = new TaskChildCandidatesDTO();
dto.setTask(task);
dto.setSelectedGroupName("testGroupName");
long candidateTaskId = 200;
Task candidateTask = new Task("task200");
candidateTask.setId(candidateTaskId);
when(mockTaskManager.get(candidateTaskId)).thenReturn(candidateTask);
Set<Long> candidateTaskIds = new HashSet<Long>();
candidateTaskIds.add(candidateTaskId);
dto.setCandidateChildTaskIds(candidateTaskIds);
long childTaskId = 300;
Task childTask = new Task("task300");
childTask.setId(childTaskId);
when(mockTaskManager.get(childTaskId)).thenReturn(childTask);
Set<Long> childTaskIds = new HashSet<Long>();
childTaskIds.add(childTaskId);
dto.setChildTaskIds(childTaskIds);