private List<ExecutableFlow> createExecutions() throws Exception {
final Executor executor = this.executorDao.addExecutor("test", 1);
final ExecutableFlow flow1 = createExecutionAndAssign(Status.PREPARING, executor);
final ExecutableFlow flow2 = createExecution(Status.PREPARING);
final ExecutableFlow flow3 = createExecutionAndAssign(Status.RUNNING, executor);
flow3.setStartTime(System.currentTimeMillis() + 1);
this.executionFlowDao.updateExecutableFlow(flow3);
final ExecutableFlow flow4 = createExecutionAndAssign(Status.SUCCEEDED, executor);
flow4.setStartTime(System.currentTimeMillis() - 2);
flow4.setEndTime(System.currentTimeMillis() - 1);
this.executionFlowDao.updateExecutableFlow(flow4);
final Executor executor2 = this.executorDao.addExecutor("test2", 2);
final ExecutableFlow flow5 = createExecutionAndAssign(Status.RUNNING, executor2);
flow5.setStartTime(System.currentTimeMillis() + 1);
this.executionFlowDao.updateExecutableFlow(flow5);
this.executorDao.removeExecutor(executor2.getHost(), executor2.getPort());
return ImmutableList.of(flow1, flow2, flow3, flow4, flow5);
}