@Test
public void leave() {

    Id dbId = new Id("idp:a:angrybirds", "core_leave_syncgroups");
    Id sgId = new Id("idp:u:alice", "syncgroup");
    boolean exceptionThrown = false;
    try {
        Database db = Service.database(dbId);
        db.create(anyDbPermissions());
        db.syncgroup(sgId).leave();
    }  catch (VError vError) {
        assertEquals("v.io/v23/verror.NotImplemented", vError.id);
        exceptionThrown = true;
    }
    assertTrue(exceptionThrown);
}