parser.init(); sensorToParserComponentMap.put(sensorType, new ParserComponent(parser, filter));
parser.init();
Assert.assertEquals(broParser, broComponent.getMessageParser()); Assert.assertEquals(stellarFilter, broComponent.getFilter()); verify(broParser, times(1)).init(); verify(broParser, times(1)).configure(broParserConfig); verifyNoMoreInteractions(broParser); Assert.assertEquals(snortParser, snortComponent.getMessageParser()); Assert.assertNull(snortComponent.getFilter()); verify(snortParser, times(1)).init(); verify(snortParser, times(1)).configure(snortParserConfig); verifyNoMoreInteractions(snortParser);