@Test
public void testUpdateExecutedRampFlows() throws ExecutorManagerException {

  long timeStamp = System.currentTimeMillis();
  ExecutableRampExceptionalItems items = ExecutableRampExceptionalItems
      .createInstance()
      .add("contact-join.cjn-all", ExecutableRampStatus.SELECTED, timeStamp, true)
      .add("project.flow", ExecutableRampStatus.UNSELECTED, timeStamp, true);
  this.executionRampDao.updateExecutedRampFlows("dali", items);
  final ExecutableRampExceptionalFlowItemsMap record =
      this.executionRampDao.fetchExecutableRampExceptionalFlowItemsMap();
  assertThat(record.get("dali").getItems().size()).isEqualTo(2);
  assertThat(record.get("dali").getItems().get("contact-join.cjn-all").getStatus())
      .isEqualByComparingTo(ExecutableRampStatus.SELECTED);
  assertThat(record.get("dali").getItems().get("contact-join.cjn-all").getTimeStamp())
      .isEqualTo(timeStamp);
  assertThat(record.get("dali").getItems().get("project.flow").getStatus())
      .isEqualByComparingTo(ExecutableRampStatus.UNSELECTED);
  assertThat(record.get("dali").getItems().get("project.flow").getTimeStamp())
      .isEqualTo(timeStamp);
}