private String getHostAndPort() {
        return consulContainer.getHost() + ":" + consulContainer.getMappedPort(8500);
    }
This test shows the pattern to use the ConsulContainer @ClassRule for a junit test. It also has tests that ensure
the properties were added correctly by reading from Consul with the CLI and over HTTP.
modules/consul/src/test/java/org/testcontainers/consul/ConsulContainerTest.java