@GetMapping("/search")
    @Secured(resource = AuthConstants.CONSOLE_RESOURCE_NAME_PREFIX + "roles", action = ActionTypes.READ)
    public List<String> searchRoles(@RequestParam String role) {
        return roleService.findRolesLikeRoleName(role);
    }
@Test
    void testSearchRoles() {
        List<String> test = new ArrayList<>();
        
        when(roleService.findRolesLikeRoleName(anyString())).thenReturn(test);
        
        List<String> list = roleController.searchRoles("test");
        assertEquals(test, list);
    }