@Test
    public void testAuthenticationDisabled() {
        try (
            final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(YBDB_TEST_IMAGE)
                .withPassword("cassandra")
                .withUsername("cassandra")
        ) {
            ycqlContainer.start();
            assertThat(performQuery(ycqlContainer, "SELECT release_version FROM system.local").wasApplied())
                .as("Keyspace login with authentication disabled succeeds")
                .isTrue();
        }
    }
YugabyteDB YCQL API unit test class
modules/yugabytedb/src/test/java/org/testcontainers/junit/yugabytedb/YugabyteDBYCQLTest.java