### Question:
DBHelper { private static ODatabaseDocumentPool initPool(String dbURL, String user, String password, int minSize, int maxSize, JsonValue completeConfig) throws InvalidException { logger.trace("Initializing DB Pool {}", dbURL); OGlobalConfiguration.TX_USE_LOG.setValue(true); OGlobalConfiguration.TX_COMMIT_SYNCH.setValue(true); OGlobalConfiguration.STORAGE_KEEP_OPEN.setValue(false); boolean success = false; int maxRetry = 10; int retryCount = 0; ODatabaseDocumentPool pool = null; do { retryCount++; if (pool != null) { pool.close(); } pool = ODatabaseDocumentPool.global(); warmUpPool(pool, dbURL, user, password, 1); boolean finalTry = (retryCount >= maxRetry); success = test(pool, dbURL, user, password, finalTry); } while (!success && retryCount < maxRetry); if (!success) { logger.warn("DB could not be verified."); } else { logger.info("DB verified on try {}", retryCount); } logger.debug("Opened and initialized pool {}", pool); return pool; }  synchronized static ODatabaseDocumentPool getPool(String dbURL, String user, String password, 
            int minSize, int maxSize, JsonValue completeConfig, boolean setupDB); synchronized static void closePools();  }### Answer:
@Test public void initPoolTest() throws Exception { String dbURL = "local:./target/testdb"; String user = "admin"; String password = "admin"; Map map = new HashMap(); JsonValue completeConfig = new JsonValue(map); int minSize = 5; int maxSize = 20; ODatabaseDocumentPool pool = DBHelper.getPool(dbURL, user, password, minSize, maxSize, completeConfig, true); assertNotNull(pool); ODatabaseDocumentTx db = pool.acquire(dbURL, user, password); assertNotNull(db); db.close(); DBHelper.closePools(); OServer server = OServerMain.create(); server.shutdown(); }