@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());
    }
}