@Override
    protected Session createNewConnection() {
        try {
            return CassandraContainer.getCluster(container).newSession();
        } catch (DriverException e) {
            log.error("Could not obtain cassandra connection");
            throw new ConnectionCreationException("Could not obtain cassandra connection", e);
        }
    }
Cassandra database delegate

@deprecated use {@link org.testcontainers.cassandra.delegate.CassandraDatabaseDelegate} instead.
modules/cassandra/src/main/java/org/testcontainers/containers/delegate/CassandraDatabaseDelegate.java