docs: @VisibleForTesting
    RemoteTaskRunnerWorkItem addPendingTask(final Task task)
    {
      log.info("Added pending task %s", task.getId());
      final RemoteTaskRunnerWorkItem taskRunnerWorkItem = new RemoteTaskRunnerWorkItem(
          task.getId(),
          task.getType(),
          null,
          null,
          task.getDataSource()
      );
      pendingTaskPayloads.put(task.getId(), task);
      pendingTasks.put(task.getId(), taskRunnerWorkItem);
      runPendingTasks();
      return taskRunnerWorkItem;
    }