public StepRuntimeState getStepInstanceRuntimeState(
      String workflowId,
      long workflowInstanceId,
      long workflowRunId,
      String stepId,
      String stepAttempt) {
    return getStepInstanceFieldByIds(
        StepInstanceField.RUNTIME_STATE,
        workflowId,
        workflowInstanceId,
        workflowRunId,
        stepId,
        stepAttempt,
        this::getRuntimeState);
  }
@Test
  public void testGetStepInstanceRuntimeState() {
    StepRuntimeState state =
        stepDao.getStepInstanceRuntimeState(TEST_WORKFLOW_ID, 1, 1, "job1", "1");
    assertEquals(si.getRuntimeState(), state);
    StepRuntimeState latest =
        stepDao.getStepInstanceRuntimeState(TEST_WORKFLOW_ID, 1, 1, "job1", "latest");
    assertEquals(state, latest);
  }