@Test
    public void readFirstPropertyPathWithCli() throws IOException, InterruptedException {
        GenericContainer.ExecResult result = consulContainer.execInContainer("consul", "kv", "get", "config/testing1");
        final String output = result.getStdout().replaceAll("\\r?\\n", "");
        assertThat(output).contains("value123");
    }
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