@Test public void testNormal() throws Exception { List<Publishment> pubs = loadEntities("/router/publishments-extended-deduplicator.json", Publishment.class); AlertPublishPlugin plugin = AlertPublishPluginsFactory.createNotificationPlugin(pubs.get(0), null, null); AlertStreamEvent event1 = createWithStreamDef("extended_dedup_host1", "extended_dedup_testapp1", "OPEN"); AlertStreamEvent event2 = createWithStreamDef("extended_dedup_host2", "extended_dedup_testapp1", "OPEN"); AlertStreamEvent event3 = createWithStreamDef("extended_dedup_host2", "extended_dedup_testapp2", "CLOSE"); Assert.assertNotNull(plugin.dedup(event1)); Assert.assertNull(plugin.dedup(event2)); Assert.assertNotNull(plugin.dedup(event3)); }