### Question:
PermissionServiceImpl extends ServiceImpl<PermissionMapper, PermissionDO> implements PermissionService { @Override public List<PermissionDO> getPermissionByGroupId(Long groupId) { return this.baseMapper.selectPermissionsByGroupId(groupId); }  @Override List<PermissionDO> getPermissionByGroupId(Long groupId); @Override List<PermissionDO> getPermissionByGroupIds(List<Long> groupIds); @Override Map<Long, List<PermissionDO>> getPermissionMapByGroupIds(List<Long> groupIds); @Override List<Map<String, List<Map<String, String>>>> structuringPermissions(List<PermissionDO> permissions); @Override Map<String, List<String>> structuringPermissionsSimply(List<PermissionDO> permissions);  }### Answer:
@Test public void getPermissionByGroupId() { Long id = mockData(); List<PermissionDO> permissions = permissionService.getPermissionByGroupId(id); assertTrue(permissions.size() > 0); boolean anyMatch = permissions.stream().anyMatch(permission -> permission.getName().equals("权限2")); assertTrue(anyMatch); }