@GetMapping(params = "search=accurate")
    @Secured(resource = AuthConstants.CONSOLE_RESOURCE_NAME_PREFIX + "permissions", action = ActionTypes.READ)
    public Object getPermissions(@RequestParam int pageNo, @RequestParam int pageSize,
            @RequestParam(name = "role", defaultValue = StringUtils.EMPTY) String role) {
        return nacosRoleService.getPermissionsFromDatabase(role, pageNo, pageSize);
    }
@Test
    void testGetPermissions() {
        Page<PermissionInfo> permissionInfoPage = new Page<PermissionInfo>();
        
        when(nacosRoleService.getPermissionsFromDatabase(anyString(), anyInt(), anyInt())).thenReturn(
                permissionInfoPage);
        
        Object permissions = permissionController.getPermissions(1, 10, "admin");
        assertEquals(permissionInfoPage, permissions);
    }