@JsonIgnore
  public WorkflowInstance.Status getRunStatus() {
    if (runtimeOverview == null || runtimeOverview.getRunStatus() == null) {
      return status;
    }
    return runtimeOverview.getRunStatus();
  }
@Test
  public void testRunStatus() throws Exception {
    WorkflowInstance instance =
        loadObject(
            "fixtures/instances/sample-workflow-instance-succeeded.json", WorkflowInstance.class);
    assertEquals(WorkflowInstance.Status.SUCCEEDED, instance.getStatus());
    assertEquals(WorkflowInstance.Status.SUCCEEDED, instance.getRunStatus());
    instance.setStatus(WorkflowInstance.Status.FAILED);
    instance.getRuntimeOverview().setRunStatus(WorkflowInstance.Status.SUCCEEDED);
    assertEquals(WorkflowInstance.Status.FAILED, instance.getStatus());
    assertEquals(WorkflowInstance.Status.SUCCEEDED, instance.getRunStatus());
    assertEquals(12345, instance.getInternalId().longValue());
  }