@DeleteMapping("/batch")
    @RequiresPermissions("system:role:delete")
    public ShenyuAdminResult deleteRole(@RequestBody @NotEmpty final List<@NotBlank String> ids) {
        return ShenyuAdminResult.success(ShenyuResultMessage.DELETE_SUCCESS, roleService.delete(ids));
    }
@Test
    public void testDeleteRole() throws Exception {
        List<String> testIds = Collections.singletonList("test_id");
        given(roleService.delete(testIds)).willReturn(1);
        this.mockMvc.perform(MockMvcRequestBuilders.delete("/role/batch")
            .contentType(MediaType.APPLICATION_JSON)
            .content(GsonUtils.getInstance().toJson(testIds)))
            .andExpect(status().isOk())
            .andExpect(jsonPath("$.message", is(ShenyuResultMessage.DELETE_SUCCESS)))
            .andReturn();

    }