public StepInstance getStepInstance(
      String workflowId,
      long workflowInstanceId,
      long workflowRunId,
      String stepId,
      String stepAttempt) {
    return getStepInstanceFieldByIds(
        StepInstanceField.ALL,
        workflowId,
        workflowInstanceId,
        workflowRunId,
        stepId,
        stepAttempt,
        this::maestroStepFromResult);
  }
@Test
  public void testGetStepInstanceWithInvalidAttempt() {
    AssertHelper.assertThrows(
        "cannot cast an invalid attempt id",
        NumberFormatException.class,
        "For input string: \"first\"",
        () -> stepDao.getStepInstance(TEST_WORKFLOW_ID, 1, 1, "job1", "first"));
  }