@Test
    public void testInitScript() {
        String key = "random";
        try (
            final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(YBDB_TEST_IMAGE)
                .withKeyspaceName(key)
                .withUsername(key)
                .withPassword(key)
                .withInitScript("init/init_yql.sql")
        ) {
            ycqlContainer.start();
            ResultSet output = performQuery(ycqlContainer, "SELECT greet FROM random.dsql");
            assertThat(output.wasApplied()).as("Statements from a custom script execution succeeds").isTrue();
            assertThat(output.one().getString(0)).as("A record match succeeds").isEqualTo("Hello DSQL");
        }
    }
YugabyteDB YCQL API unit test class
modules/yugabytedb/src/test/java/org/testcontainers/junit/yugabytedb/YugabyteDBYCQLTest.java