DependencyInstanceProcessor { public void processStatusUpdate(final DependencyInstance depInst) { this.flowTriggerInstanceLoader.updateDependencyExecutionStatus(depInst); } @Inject  DependencyInstanceProcessor(final FlowTriggerInstanceLoader depLoader); void processStatusUpdate(final DependencyInstance depInst);  }
@Test public void testStatusUpdate() { final DependencyInstance depInst = new DependencyInstance("dep1", System.currentTimeMillis() , 0, null, Status.RUNNING, CancellationCause.NONE); processor.processStatusUpdate(depInst); verify(triggerInstLoader).updateDependencyExecutionStatus(depInst); }