public static void disableDatabasePersistence() {
        JiveProperties.disableDatabasePersistence();
        // The persistence of JiveProperties implicitly initializes the DbConnectionManager. Do that here, to avoid issues.
        if (DbConnectionManager.getConnectionProvider() == null) {
            DbConnectionManager.setConnectionProvider(new DummyConnectionProvider());
        }
        // The following allows JiveGlobals to persist
        JiveGlobals.setXMLProperty("setup", "true");
        // The following speeds up tests by avoiding DB retries
        JiveGlobals.setXMLProperty("database.maxRetries", "0");
        JiveGlobals.setXMLProperty("database.retryDelay", "0");
        clearExistingProperties();
    }
Disables the persistence (of properties) to the database, setting a dummy database connection provider, unless
another provider has explicitly been set.
xmppserver/src/test/java/org/jivesoftware/Fixtures.java