DatabaseHandle { public List<Id> listCollections() throws VError { return io.v.syncbase.internal.Database.ListCollections(fullName, ""); } DatabaseHandle(Id id); Id id(); Collection collection(String name); Collection collection(Id id); List<Id> listCollections(); byte[] getResumeMarker();  }
@Test public void listCollections() { Id dbId = new Id("idp:a:angrybirds", "core_list_db"); try { Database db = Service.database(dbId); db.create(anyDbPermissions()); BatchDatabase batchDb = db.beginBatch(null); List<Id> collections = batchDb.listCollections(); assertNotNull(collections); assertEquals(0, collections.size()); } catch (VError vError) { vError.printStackTrace(); fail(vError.toString()); } }