Group group = settingDao.getGroup(new Integer(1001)); settingDao.deleteGroup(group);
settingDao.deleteGroups(Collections.singletonList(new Integer(1001)));
    public void testDeletePhoneGroups() throws Exception {        TestHelper.cleanInsert("ClearDb.xml");        TestHelper.cleanInsertFlat("phone/GroupMemberCountSeed.xml");        Group group = settingDao.getGroup(new Integer(1001));        settingDao.deleteGroup(group);        // link table references removed        ITable actual = TestHelper.getConnection().createDataSet().getTable("phone_group");        // just phone 2 and group 2        assertEquals(1, actual.getRowCount());    } 