@BeforeAll
    static void start() throws Throwable {
        // Initialize Consul client
        consulUri = URI.create(
                "http://" + consulContainer.getHost() + ':' + consulContainer.getMappedPort(8500));

        consulClient = ConsulClient.builder(consulUri)
                                   .consulToken(CONSUL_TOKEN)
                                   .build();
    }
A helper class for testing with Consul.
consul/src/test/java/com/linecorp/armeria/internal/consul/ConsulTestBase.java