@Override
  public void stop() {
    LOG.debug("Notify {} handlers...", ServerStopHandler.class.getSimpleName());
    for (ServerStopHandler handler : stopHandlers) {
      handler.onServerStop(server);
    }
  }
@Test
  public void notifyOnStop() {
    ServerLifecycleNotifier notifier = new ServerLifecycleNotifier(server, new ServerStartHandler[] {start1, start2}, new ServerStopHandler[] {stop1, stop2});
    notifier.stop();

    verify(start1, never()).onServerStart(server);
    verify(start2, never()).onServerStart(server);
    verify(stop1).onServerStop(server);
    verify(stop2).onServerStop(server);
  }