private VertxOptions createVertxOptions(final MetricsSystem metricsSystem) {
    return new VertxOptions()
        .setPreferNativeTransport(true)
        .setMetricsOptions(
            new io.vertx.core.metrics.MetricsOptions()
                .setEnabled(true)
                .setFactory(new VertxMetricsAdapterFactory(metricsSystem)));
  }
Builds Vertx instance from VertxOptions. Visible for testing.

@param vertxOptions Instance of VertxOptions
@return Instance of Vertx.
app/src/main/java/org/hyperledger/besu/cli/BesuCommand.java