driver-embedded/src/main/com/mongodb/embedded/client/MongoClients.java
public static synchronized void init(final MongoEmbeddedSettings mongoEmbeddedSettings) {
        if (mongoEmbeddedLibrary != null) {
            throw new MongoClientEmbeddedException("The mongo embedded library has already been initialized");
        }
        try {
            mongoEmbeddedLibrary = MongoEmbeddedCAPI.create(mongoEmbeddedSettings.getYamlConfig(),
                    mongoEmbeddedSettings.getLogLevel().toCapiLogLevel(), mongoEmbeddedSettings.getLibraryPath());
        } catch (Exception e) {
            throw new MongoClientEmbeddedException(format("The mongo embedded library could not be initialized%n"
                    + "Server error message: %s", e.getMessage()), e);
        }

    }
public static synchronized void init(final MongoEmbeddedSettings mongoEmbeddedSettings) {
        if (mongoEmbeddedLibrary != null) {
            throw new MongoClientEmbeddedException("The mongo embedded library has already been initialized");
        }
        try {
            mongoEmbeddedLibrary = MongoEmbeddedCAPI.create(mongoEmbeddedSettings.getYamlConfig(),
                    mongoEmbeddedSettings.getLogLevel().toCapiLogLevel(), mongoEmbeddedSettings.getLibraryPath());
        } catch (Exception e) {
            throw new MongoClientEmbeddedException(format("The mongo embedded library could not be initialized%n"
                    + "Server error message: %s", e.getMessage()), e);
        }

    }
Initializes the mongod library for use.

<p>The library must be called at most once per process before calling {@link #create(MongoClientSettings)}.</p>
@param mongoEmbeddedSettings the settings for the embedded driver.