// create document pool
ODatabaseDocumentPool pool = new ODatabaseDocumentPool(DBURI, DBUSR, DBPWD);
pool.setup(100, 200);
// create the schema for the test class if it doesn't exist
ODatabaseDocumentTx db = pool.acquire();
try {
OSchema schema = db.getMetadata().getSchema();
if (!schema.existsClass(CLASSNAME)) {
OClass oc = schema.createClass(CLASSNAME);
oc.createProperty(PROPKEY, OType.STRING);