SkipBlankBolt extends AbstractLogicBolt { @Override public void configure(Configuration conf) { field = conf.getString(FIELD); Validate.notBlank(field); }  @Override void configure(Configuration conf); static final String FIELD; }
@Test public void testConfigure(@Injectable Configuration conf) { new Expectations() {{ conf.getString(SkipBlankBolt.FIELD); result = "field0"; }}; bolt.configure(conf); assertThat(bolt.field, is("field0")); }