### Question:
MongoDBProvider implements DataBase { @Override public final void createCollection(String user, String name) { String collectionName = user + "_" + name; if (!KernelThread.currentKernelThread().isPrivileged()) { throw new SecurityException("create collection - not authorized"); } this.db.createCollection(collectionName); MongoCollection collection = this.db.getCollection(collectionName); if (collection == null) { throw new RuntimeErrorException(new Error("Could not create collection " + name)); } } MongoDBProvider(MongoDatabase db);  MongoDBProvider(String host, int port, String dbName, String mongoUser, String password); final MongoClient getClient(); final MongoDatabase getDatabase(); @Override final void store(List<ResourceAnchor> anchors); @Override final void store(String user, String collection, PersistentObject obj); @Override void delete(String user, String name, PersistentObject obj); @Override void delete(String user, String name, String objName); @Override final void delete(List<ResourceAnchor> anchors); @Override final void createCollection(String user, String name); @Override final void deleteCollection(String user,String name); @Override final List<String> find(String user,
                                   String name,
                                   Map<String, Object> query); @Override final boolean collectionExists(String user, String name);  }### Answer:
@Test public void testCreateCollection() throws Exception { }