GeoJsonPointReverseArrayBolt extends AbstractProcessingBolt { @Override public void configure(Configuration conf) { srcDestFieldMapping = extractSimpleMap(conf, "fields", "field", SRC_FIELD, DEST_FIELD); }  @Override void configure(Configuration conf); static final String SRC_FIELD; static final String DEST_FIELD; }
@Test public void testConfigure() throws Exception { URL resource = TestResourceUtils.getResource(this.getClass(), "config.xml"); XMLConfiguration conf = new XMLConfiguration(resource); bolt.configure(conf); assertThat(bolt.srcDestFieldMapping.size(), is(2)); }