@Test
public void testGetLatestFlowEventWhenFlowExists() {

    final String flowId = "2";
    final Optional<FDFlowEvent> flowEventOptional = flowManager.getLatestFlowEvent(flowId);
    assertTrue(flowEventOptional.isPresent());
    final FDFlowEvent flowEvent = flowEventOptional.get();
    assertEquals("4", flowEvent.getIdentifier());
    assertEquals(3, flowEvent.getFlowRevision().intValue());
}