Group group = m_settingDao.getGroup(new Integer(1001)); m_settingDao.deleteGroup(group);
m_settingDao.deleteGroups(Collections.singletonList(new Integer(1001)));
    public void testDeleteUserGroups() throws Exception {        TestHelper.cleanInsert("ClearDb.xml");        TestHelper.insertFlat("common/UserGroupSeed.xml");        Group group = m_settingDao.getGroup(new Integer(1001));        m_settingDao.deleteGroup(group);        // link table references removed        ITable actual = TestHelper.getConnection().createDataSet().getTable("user_group");        assertEquals(0, actual.getRowCount());    }