### Question:
GroupServiceImpl extends ServiceImpl<GroupMapper, GroupDO> implements GroupService { @Override public boolean checkGroupExistByName(String name) { QueryWrapper<GroupDO> wrapper = new QueryWrapper<>(); wrapper.lambda().eq(GroupDO::getName, name); return this.baseMapper.selectCount(wrapper) > 0; }  @Override List<GroupDO> getUserGroupsByUserId(Long userId); @Override List<Long> getUserGroupIdsByUserId(Long userId); @Override IPage<GroupDO> getGroupPage(long page, long count); @Override boolean checkGroupExistById(Long id); @Override GroupPermissionsBO getGroupAndPermissions(Long id); @Override boolean checkGroupExistByName(String name); @Override boolean checkIsRootByUserId(Long userId); @Override boolean deleteUserGroupRelations(Long userId, List<Long> deleteIds); @Override boolean addUserGroupRelations(Long userId, List<Long> addIds);  }### Answer:
@Test public void checkGroupExistByName() { GroupDO group = mockData1(); boolean exist = groupService.checkGroupExistByName(group.getName()); assertTrue(exist); }