static String baseUrl(Server server, SessionProtocol protocol) {
    return server.activePorts().values().stream()
      .filter(p -> p.hasProtocol(protocol)).findAny()
      .map(p -> protocol.uriText() + "://localhost:" + p.localAddress().getPort())
      .orElseThrow(() -> new AssertionError(protocol + " port not open"));
  }
This code ensures you can setup SSL. Look at {@link ArmeriaSettings} for property names.

<p>This is inspired by com.linecorp.armeria.spring.ArmeriaSslConfigurationTest
zipkin-server/src/test/java/zipkin2/server/internal/ITZipkinServerSsl.java