@Test
    public void readTransitKeyOverHttpApi() throws InterruptedException {
        Response response = given()
            .header("X-Vault-Token", VAULT_TOKEN)
            .when()
            .get(vaultContainer.getHttpHostAddress() + "/v1/transit/keys/my-key")
            .thenReturn();

        assertThat(response.body().jsonPath().getString("data.name")).isEqualTo("my-key");
    }
This test shows the pattern to use the VaultContainer @ClassRule for a junit test. It also has tests that ensure
the secrets were added correctly by reading from Vault with the CLI, over HTTP and over Client Library.
modules/vault/src/test/java/org/testcontainers/vault/VaultContainerTest.java