private ResultSet performQuery(YugabyteDBYCQLContainer ycqlContainer, String cql) {
        try (
            CqlSession session = CqlSession
                .builder()
                .withKeyspace(ycqlContainer.getKeyspace())
                .withAuthCredentials(ycqlContainer.getUsername(), ycqlContainer.getPassword())
                .withLocalDatacenter(ycqlContainer.getLocalDc())
                .addContactPoint(ycqlContainer.getContactPoint())
                .build()
        ) {
            return session.execute(cql);
        }
    }
YugabyteDB YCQL API unit test class
modules/yugabytedb/src/test/java/org/testcontainers/junit/yugabytedb/YugabyteDBYCQLTest.java