OrientDBDocumentCollectionManagerFactory implements DocumentCollectionManagerFactory { @Override public OrientDBDocumentCollectionManager get(String database) { requireNonNull(database, "database is required"); orient.createIfNotExists(database, storageType); ODatabasePool pool = new ODatabasePool(orient, database, user, password); return new DefaultOrientDBDocumentCollectionManager(pool); } OrientDBDocumentCollectionManagerFactory(String host, String user, String password, String storageType); @Override OrientDBDocumentCollectionManager get(String database); @Override void close();  }
@Test public void shouldCreateEntityManager() { DocumentCollectionManager database = managerFactory.get("database"); assertNotNull(database); }