### Question:
LifecycleImpl extends Named implements Lifecycle { @Override public void stop() { invoke(PreDestroy.class); } LifecycleImpl(final Object delegate, final String rootName, final String name, final String plugin); protected  LifecycleImpl(); @Override void start(); @Override void stop(); @Override boolean equals(final Object o); @Override int hashCode();  }### Answer:
@Test void stop() { final StopOnly delegate = new StopOnly(); final Lifecycle impl = new LifecycleImpl(delegate, "Root", "Test", "Plugin"); assertEquals(0, delegate.counter); impl.start(); assertEquals(0, delegate.counter); impl.stop(); assertEquals(1, delegate.counter); }