public void notifyStart() {
    LOG.debug("Notify {} handlers...", ServerStartHandler.class.getSimpleName());
    for (ServerStartHandler handler : startHandlers) {
      handler.onServerStart(server);
    }
  }
@Test
  public void notifyOnStart() {
    ServerLifecycleNotifier notifier = new ServerLifecycleNotifier(server, new ServerStartHandler[] {start1, start2}, new ServerStopHandler[] {stop2});
    notifier.notifyStart();

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