static boolean isRealTask(Task task) {
    return task.getSeq() >= 0
        && StepHelper.retrieveStepStatus(task.getOutputData()) != StepInstance.Status.NOT_CREATED;
  }
@Test
  public void testIsRealTask() {
    when(task.getTaskType()).thenReturn(Constants.MAESTRO_TASK_NAME);
    when(task.getSeq()).thenReturn(-1);
    Assert.assertFalse(TaskHelper.isRealTask(task));
    when(task.getSeq()).thenReturn(1);
    when(task.getOutputData())
        .thenReturn(
            Collections.singletonMap(
                Constants.STEP_RUNTIME_SUMMARY_FIELD,
                StepRuntimeSummary.builder().runtimeState(new StepRuntimeState()).build()));
    Assert.assertFalse(TaskHelper.isRealTask(task));
    when(task.getOutputData()).thenReturn(Collections.emptyMap());
    Assert.assertTrue(TaskHelper.isRealTask(task));
  }