@DeleteMapping
    @Secured(resource = AuthConstants.CONSOLE_RESOURCE_NAME_PREFIX + "roles", action = ActionTypes.WRITE)
    public Object deleteRole(@RequestParam String role,
            @RequestParam(name = "username", defaultValue = StringUtils.EMPTY) String username) {
        if (StringUtils.isBlank(username)) {
            roleService.deleteRole(role);
        } else {
            roleService.deleteRole(role, username);
        }
        return RestResultUtils.success("delete role of user " + username + " ok!");
    }
@Test
    void testDeleteRole1() {
        RestResult<String> result = (RestResult<String>) roleController.deleteRole("test", null);
        
        verify(roleService, times(1)).deleteRole(anyString());
        
        assertEquals(200, result.getCode());
        
    }