@Override
  public void startAsync() {
    if (!shouldCheckPreconditions()) {
      LOG.info("All preconditions passed, skipping precondition server start");
      return;
    }
    LOG.info("Some preconditions not passed, starting precondition server");
    server.start();
  }
@Test
  public void shouldNotStartServerIfNoPreconditions() {
    // Given:
    PreconditionChecker checker = new PreconditionChecker(
        propertiesLoader,
        restConfig,
        () -> new PreconditionChecker.Clients(serviceContext, clientVertx, admin, topicClient),
        vertx,
        ImmutableList.of(),
        server,
        serverState
    );

    // When:
    checker.startAsync();

    // Then:
    verifyNoInteractions(server);
  }