TriggerInstanceProcessor { public void processNewInstance(final TriggerInstance triggerInst) { this.flowTriggerInstanceLoader.uploadTriggerInstance(triggerInst); } @Inject  TriggerInstanceProcessor(final ExecutorManagerAdapter executorManager,
      final FlowTriggerInstanceLoader flowTriggerInstanceLoader,
      final Emailer emailer); void processSucceed(final TriggerInstance triggerInst); void processTermination(final TriggerInstance triggerInst); void processNewInstance(final TriggerInstance triggerInst); void shutdown();  }
@Test public void testNewInstance() throws ParseException { final TriggerInstance triggerInstance = createTriggerInstance(); this.processor.processNewInstance(triggerInstance); verify(this.triggerInstLoader).uploadTriggerInstance(triggerInstance); }