@Test
public void testDeleteFlowEvent() {

    // Verify that we start with 3 events for flow #2
    final String flowId = "2";
    final List<FDFlowEvent> flowEvents = flowManager.getFlowEvents(flowId);
    assertEquals(3, flowEvents.size());

    final FDFlowEvent flowEvent2 = flowManager.deleteFlowEvent("2");
    assertNotNull(flowEvent2);

    final FDFlowEvent flowEvent3 = flowManager.deleteFlowEvent("3");
    assertNotNull(flowEvent3);

    try {
        flowManager.deleteFlowEvent("4");
        Assert.fail("Should have thrown exception");
    } catch (Exception e) {

    }
}