@Test
public void joinSyncgroup() {

    Id dbId = new Id("idp:a:angrybirds", "join_syncgroup");
    String dbName = dbId.encode();
    Id sgId = new Id("idp:u:alice", "syncgroup");
    boolean exceptionThrown = false;
    try {
        Database.JoinSyncgroup(
                dbName, "", new ArrayList<String>(), sgId, new SyncgroupMemberInfo());
    } catch (VError vError) {
        assertEquals("v.io/v23/verror.NoExist", vError.id);
        assertNotNull(vError.message);
        assertNotNull(vError.stack);
        assertEquals(0, vError.actionCode);
        exceptionThrown = true;
    }
    assertTrue(exceptionThrown);
}