CouhbaseDocumentCollectionManagerFactory implements DocumentCollectionManagerFactory { @Override public CouchbaseDocumentCollectionManager get(String database) throws UnsupportedOperationException, NullPointerException { CouchbaseCluster authenticate = getCouchbaseCluster(database); return new DefaultCouchbaseDocumentCollectionManager(authenticate.openBucket(database), database); } CouhbaseDocumentCollectionManagerFactory(CouchbaseCluster couchbaseCluster, String user, String password); @Override CouchbaseDocumentCollectionManager get(String database); @Override void close();  }
@Test public void shouldCreateEntityManager() { CouhbaseDocumentCollectionManagerFactory factory = configuration.get(); assertNotNull(factory.get(CouchbaseUtil.BUCKET_NAME)); }