OLogManager.instance().info(this, "Iteration " + i);
OServer server = OServerMain.create().startup().activate();
// create database if does not exist
OObjectDatabaseTx database = new OObjectDatabaseTx("plocal:" + System.getProperty("ORIENTDB_HOME") + "/test-db");
if (!database.exists())
database.create();
database.open("admin", "admin");
database.countClass("ouser");
database.close();
server.shutdown();
}