@Test
public void testTriggered() {

    runner.setProperty(TriggerCleanup.CATEGORY_NAME, "cat");
    runner.setProperty(TriggerCleanup.FEED_NAME, "feed");
    ((TriggerCleanup) runner.getProcessor()).triggered(new FeedCleanupTriggerEvent("FEEDID"));
    runner.run();
    List<MockFlowFile> flowFiles = runner.getFlowFilesForRelationship(TriggerCleanup.REL_SUCCESS);
    Assert.assertEquals(1, flowFiles.size());
    flowFiles.get(0).assertAttributeEquals("category", "cat");
    flowFiles.get(0).assertAttributeEquals("feed", "feed");
}