public WorkflowStartResponse toWorkflowStartResponse() {
    return WorkflowStartResponse.builder()
        .workflowId(this.workflowId)
        .workflowVersionId(this.workflowVersionId)
        .workflowInstanceId(this.workflowInstanceId)
        .workflowRunId(this.workflowRunId)
        .workflowUuid(this.workflowUuid)
        .status(this.status.runStatus)
        .timelineEvent(this.timelineEvent)
        .build();
  }
@Test
  public void testToWorkflowStartResponse() {
    RunResponse res = RunResponse.from(stepInstance, TimelineLogEvent.info("bar"));
    WorkflowStartResponse response = res.toWorkflowStartResponse();
    Assert.assertEquals(InstanceRunStatus.CREATED, response.getStatus());
    res = RunResponse.from(instance, "foo");
    response = res.toWorkflowStartResponse();
    Assert.assertEquals(InstanceRunStatus.INTERNAL_ERROR, response.getStatus());
    res = RunResponse.from(instance, 0);
    response = res.toWorkflowStartResponse();
    Assert.assertEquals(InstanceRunStatus.DUPLICATED, response.getStatus());
    res = RunResponse.from(instance, -1);
    response = res.toWorkflowStartResponse();
    Assert.assertEquals(InstanceRunStatus.STOPPED, response.getStatus());
    res = RunResponse.from(instance, 1);
    response = res.toWorkflowStartResponse();
    Assert.assertEquals(InstanceRunStatus.CREATED, response.getStatus());
  }