@Test
    public void readFirstSecretPathOverHttpApi() {
        io.restassured.response.Response response = RestAssured
            .given()
            .when()
            .get("http://" + getHostAndPort() + "/v1/kv/config/testing1")
            .andReturn();

        assertThat(response.body().jsonPath().getString("[0].Value"))
            .isEqualTo(Base64.getEncoder().encodeToString("value123".getBytes(StandardCharsets.UTF_8)));
    }
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