LineRegexReplaceInRegionBolt extends AbstractLogRecordBolt { void configureFields(Configuration conf) { fieldList = conf.getList(FIELDS).stream().map(o -> o.toString()).collect(Collectors.toList()); }  @Override void configure(Configuration conf);  }
@Test public void testConfigureFields() throws Exception { XMLConfiguration conf = new XMLConfiguration(getResource(this.getClass(), "fields.xml")); bolt.configureFields(conf); assertThat(bolt.fieldList.size(), is(3)); }