@GetMapping(params = "search=accurate")
    @Secured(resource = AuthConstants.CONSOLE_RESOURCE_NAME_PREFIX + "roles", action = ActionTypes.READ)
    public Object getRoles(@RequestParam int pageNo, @RequestParam int pageSize,
            @RequestParam(name = "username", defaultValue = "") String username,
            @RequestParam(name = "role", defaultValue = "") String role) {
        return roleService.getRolesFromDatabase(username, role, pageNo, pageSize);
    }
@Test
    void testGetRoles() {
        Page<RoleInfo> rolesTest = new Page<RoleInfo>();
        
        when(roleService.getRolesFromDatabase(anyString(), anyString(), anyInt(), anyInt())).thenReturn(rolesTest);
        Object roles = roleController.getRoles(1, 10, "nacos", "test");
        
        assertEquals(rolesTest, roles);
    }