InjectorDependencyNode implements DependencyNode { @Override public void setState(State newState) { if (newState == State.STOPPED) { running = false; } }  @Override Class<?> getRepresentedType(); @Override Set<Dependency> getDependencies(); @Override List<Execution<?>> getExecutions(); @Override State getCurrentState(); @Override void setState(State newState); @Override boolean canBe(State state); @Override boolean is(State state);  }
@Test void setState() { Stream.of(State.values()).forEach(instance::setState); }