@Test(expected = IllegalArgumentException.class)
public void testAddFlowEventWhenMissingFlowId() {

    final FDFlowEvent flowEvent = new FDFlowEvent();
    // flowEvent.setFlowIdentifier("2"); LEAVE THIS OUT ON PURPOSE
    flowEvent.setComponentId("proc-1");
    flowEvent.setEventType(FDFlowEventType.COMPONENT_ADDED);
    flowEvent.setEventDescription("Added TailFile processor");
    flowEvent.setUserIdentity("test-user");
    final VersionedProcessGroup pg = new VersionedProcessGroup();
    pg.setIdentifier(UUID.randomUUID().toString());
    pg.setName("NEW ROOT GROUP");
    final NiFiUser user = new StandardNiFiUser.Builder().identity("system").build();
    flowManager.addFlowEvent(flowEvent, pg, user);
}