@Override
    protected void containerIsStarted(InspectContainerResponse containerInfo, boolean reused) {
        if (!this.shardingEnabled) {
            initReplicaSet(reused);
        }
    }
Enables sharding on the cluster

@return this
modules/mongodb/src/main/java/org/testcontainers/containers/MongoDBContainer.java