### Question:
Database extends DatabaseHandle { public boolean exists() throws VError { return io.v.syncbase.internal.Database.Exists(fullName); } Database(Id id); VersionedPermissions getPermissions(); void setPermissions(VersionedPermissions permissions); void create(Permissions permissions); void destroy(); boolean exists(); BatchDatabase beginBatch(BatchOptions options); Syncgroup syncgroup(String name); Syncgroup syncgroup(Id id); List<Id> listSyncgroups(); void watch(byte[] resumeMarker, List<CollectionRowPattern> patterns,
                      final WatchPatternsCallbacks callbacks); void runInBatch(final BatchOperation op, BatchOptions options);  }### Answer:
@Test public void exists() { Id dbId = new Id("idp:a:angrybirds", "core_exists_db"); try { Database db = Service.database(dbId); assertFalse(db.exists()); db.create(anyDbPermissions()); assertTrue(db.exists()); } catch (VError vError) { vError.printStackTrace(); fail(vError.toString()); } }