key = KeyFactory.createKey(JobRecord.DATA_STORE_KIND, "job2");
RunJobTask runJobTask2 = new RunJobTask(key, queueSettings2);
key = KeyFactory.createKey(JobRecord.DATA_STORE_KIND, "job3");
FinalizeJobTask finalizeJobTask = new FinalizeJobTask(key, queueSettings1);
key = KeyFactory.createKey(Slot.DATA_STORE_KIND, "slot1");
HandleSlotFilledTask hsfTask = new HandleSlotFilledTask(key, queueSettings2);
listOfTasks = ImmutableList.of(runJobTask, runJobTask2, finalizeJobTask, hsfTask);
encodedBytes = FanoutTask.encodeTasks(listOfTasks);
}