InjectorDependencyNode implements DependencyNode { @Override public State getCurrentState() { return running ? State.STARTED : State.STOPPED; }  @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 getCurrentState() { assertEquals(State.STARTED, instance.getCurrentState()); instance.setState(State.STOPPED); assertEquals(State.STOPPED, instance.getCurrentState()); }