@Test
public void testUpdateExecutableFlow() throws Exception {

  final ExecutableFlow flow = createTestFlow();
  this.executionFlowDao.uploadExecutableFlow(flow);
  final ExecutableFlow fetchFlow =
      this.executionFlowDao.fetchExecutableFlow(flow.getExecutionId());
  fetchFlow.setEndTime(System.currentTimeMillis());
  fetchFlow.setStatus(Status.SUCCEEDED);
  this.executionFlowDao.updateExecutableFlow(fetchFlow);
  final ExecutableFlow fetchFlow2 =
      this.executionFlowDao.fetchExecutableFlow(flow.getExecutionId());
  assertTwoFlowSame(fetchFlow, fetchFlow2);
}