    @Test
    public void removePermissions() throws Exception {

        String name = "千里之外";
        String info = "千里之外是个啥";
        GroupDO group = GroupDO.builder().name(name).info(info).build();
        groupMapper.insert(group);

        String module = "信息";
        String permissionName = "查看lin的信息";
        PermissionDO permission = PermissionDO.builder().name(permissionName).module(module).build();
        permissionMapper.insert(permission);
        String permissionName1 = "查看pedro信息";
        PermissionDO permission1 = PermissionDO.builder().name(permissionName1).module(module).build();
        permissionMapper.insert(permission1);

        groupPermissionMapper.insert(new GroupPermissionDO(group.getId(), permission.getId()));
        groupPermissionMapper.insert(new GroupPermissionDO(group.getId(), permission1.getId()));

        RemovePermissionsDTO dto = new RemovePermissionsDTO();
        dto.setGroupId(group.getId());
        dto.setPermissionIds(Arrays.asList(permission1.getId()));

        ObjectMapper mapper = new ObjectMapper();
        mapper.setPropertyNamingStrategy(PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES);
        String content = mapper.writeValueAsString(dto);

        mvc.perform(post("/cms/admin/permission/remove")
                .contentType(MediaType.APPLICATION_JSON).content(content))
                .andDo(print())
                .andExpect(status().isOk())
                .andExpect(MockMvcResultMatchers.jsonPath("$.message").value("删除权限成功"));
    }