@Deprecated
    public static Cluster getCluster(ContainerState containerState, boolean enableJmxReporting) {
        final Cluster.Builder builder = Cluster
            .builder()
            .addContactPoint(containerState.getHost())
            .withPort(containerState.getMappedPort(CQL_PORT));
        if (!enableJmxReporting) {
            builder.withoutJMXReporting();
        }
        return builder.build();
    }
Get configured Cluster

Can be used to obtain connections to Cassandra in the container

@deprecated For Cassandra driver 3.x, use {@link #getHost()} and {@link #getMappedPort(int)} with
the driver's {@link Cluster#builder() Cluster.Builder} {@code addContactPoint(String)} and
{@code withPort(int)} methods to create a Cluster object. For Cassandra driver 4.x, use
{@link #getContactPoint()} and {@link #getLocalDatacenter()} with the driver's {@code CqlSession.builder()}
{@code addContactPoint(InetSocketAddress)} and {@code withLocalDatacenter(String)} methods to create
a Session Object. See https://docs.datastax.com/en/developer/java-driver/ for more on the driver.
modules/cassandra/src/main/java/org/testcontainers/containers/CassandraContainer.java