private List<ProcessorTask> getTasks() {
        ProcessorTaskList processorTasks = processorTaskTestHelper.assignTasks(100);
        List<ProcessorTask> list = processorTasks.getList();
        final List<ProcessorTask> dataProcessorTasks = new ArrayList<>(list.size());
        while (list.size() > 0) {
            dataProcessorTasks.addAll(list);
            processorTasks = processorTaskTestHelper.assignTasks(100);
            list = processorTasks.getList();
        }

        return dataProcessorTasks;
    }
Gets the next task to be processed.

@return The next task or null if there are currently no more tasks.
stroom-app/src/test/java/stroom/pipeline/task/TranslationTest.java