text: const uuidv4 = require('uuid/v4');
  const stubTemplate = ({
      uuid = uuidv4(), 
      pipelineUuid = `pipeline-${uuidv4()}`,
      algorithmName = 'alg name',
      batchIndex = Math.floor((Math.random() * 1000)),
      priority = Math.floor((Math.random() * 5)),
      score = Math.floor((Math.random() * 100)),
      entranceTime = Date.now()
  } = {}) => (
          {
              jobId: `${uuid}`,
              taskId: `task-${uuid}`,
              pipelineName: `${pipelineUuid}`,
              input: 'data',
              nodeName: `nodeName-${uuidv4()}`,
              entranceTime, 
              attempts: 1,
              priority: `${priority}`,
              algorithmName: `${algorithmName}`,
              batchIndex: `${batchIndex}`,
              calculated: {
                  score: `${score}`,
                  entranceTime: `${entranceTime}`,
                  enrichment: {
                      batchIndex: {}
                  },
                  latestScores: {
  
                  }
              }
          }
      );
  
  const stubTask = (batchIndex) => ({
      taskId: `taskId-${uuidv4()}`,
      batchIndex,
      input: `input-${uuidv4()}`
  });
  
  const generateConsumedArray = (number = 100) => ({
      jobId: `jobId-${uuidv4()}`,
      initialBatchLength: number,
      pipelineName: `pipelineName-${uuidv4()}`,
      nodeName: `nodeName-${uuidv4()}`,
      priority: Math.floor((Math.random() * 5)),
      algorithmName: `algorithmName-${uuidv4()}`,
      tasks: Array(number).fill().map((o, index) => stubTask(index + 1))
  });
  
  const generateArr = (number = 100, staticOptions) => Array(number).fill().map(() => stubTemplate(staticOptions));
  
  module.exports = {
      stubTemplate,
      generateArr,
      generateConsumedArray
  
  };