assertEquals(taskInfo.getState(), TaskState.RUNNING);
taskInfo = sqlTaskManager.updateTask(session,
taskId,
testFragment,
ImmutableList.<TaskSource>of(new TaskSource(tableScanNodeId, ImmutableSet.<ScheduledSplit>of(), true)),
new OutputBuffers(ImmutableSet.<String>of(), true));
assertEquals(taskInfo.getState(), TaskState.FINISHED);
taskInfo = sqlTaskManager.getTaskInfo(taskInfo.getTaskId(), false);
assertEquals(taskInfo.getState(), TaskState.FINISHED);