EmojiCounterBolt extends ChatAlyticsBaseBolt { @Override public void declareOutputFields(OutputFieldsDeclarer fields) { fields.declare(new Fields(EMOJI_ENTITY_FIELD_STR)); }  @Override void prepare(ChatAlyticsConfig config, @SuppressWarnings("rawtypes") Map conf,
                        TopologyContext context); @Override void execute(Tuple input, BasicOutputCollector collector); @Override void declareOutputFields(OutputFieldsDeclarer fields); @Override void cleanup(); static final String BOLT_ID; }
@Test public void testDeclareOutputFields() { OutputFieldsDeclarer fields = mock(OutputFieldsDeclarer.class); underTest.declareOutputFields(fields); verify(fields).declare(any(Fields.class)); }