public Optional<Details> updateRuntimeOverview(
      WorkflowSummary summary, WorkflowRuntimeOverview overview, Timeline timeline) {
    return updateWorkflowInstance(summary, overview, timeline, null, 0);
  }
@Test
  public void testInvalidWorkflowInstanceUpdate() {
    WorkflowSummary summary = new WorkflowSummary();
    summary.setWorkflowId(TEST_WORKFLOW_ID);
    summary.setWorkflowInstanceId(1);
    summary.setWorkflowRunId(2);
    Optional<Details> result = instanceDao.updateRuntimeOverview(summary, null, null);
    assertTrue(result.isPresent());
    assertEquals(
        "ERROR: updated [0] (expecting 1) rows for workflow instance [sample-dag-test-3][1][2]",
        result.get().getMessage());
    result = instanceDao.updateRuntimeOverview(null, null, null);
    assertTrue(result.isPresent());
    assertEquals(
        "ERROR: failed updating Runtime Maestro Workflow with an error", result.get().getMessage());
  }