AdminAuthGroupService { @Transactional public Result delete(AdminAuthGroup group) { adminAuthGroupDao.delete(group.getId()); adminAuthGroupAccessDao.deleteByGroupId(group.getId()); return Result.wrapResult(AdminAuthRuleLang.DROP_SUCCESS); }  Result add(AdminAuthGroup group); @Transactional Result modifyRules(AdminAuthGroup group, List<AdminAuthRule> rules); @Transactional Result delete(AdminAuthGroup group); Result edit(AdminAuthGroup group); Result<List<AdminAuthGroup>> getGroupsByUserId(Long uid); PagingResult<AdminAuthGroup> search(SearchParam param, PageParam pageParam);  }
@Test public void testDelete() { AdminAuthGroup group = new AdminAuthGroup(); group.setId(4l); adminAuthGroupService.delete(group); }