public String getDatabaseConnectionString(final String databaseName) {
        if (!isRunning()) {
            throw new IllegalStateException("MongoDBContainer should be started first");
        }
        return baseConnectionString() + "/" + databaseName + "?" + DIRECT_CONNECTION;
    }
Gets a database specific connection string for a provided <code>databaseName</code>.

@param databaseName a database name.
@return a database specific connection string.
modules/mongodb/src/main/java/org/testcontainers/mongodb/MongoDBAtlasLocalContainer.java