@BeforeMethod public void setup() { DRPCConfig config = new DRPCConfig("src/test/resources/test_drpc_config.yaml"); Map stormConfig = new Config("src/test/resources/test_storm_config.yaml").getAll(Optional.empty()); config.set(DRPCConfig.STORM_CONFIG, stormConfig); publisher = new DRPCResultPublisher(config); collector = publisher.getCollector(); // Override the ReturnResults with our own that uses our collector and fails every two tuples injectedMockBolt = new MockReturnResults(collector, 5); publisher.setBolt(injectedMockBolt); }