@GetMapping("/search")
    @Secured(resource = AuthConstants.CONSOLE_RESOURCE_NAME_PREFIX + "users", action = ActionTypes.WRITE)
    public List<String> searchUsersLikeUsername(@RequestParam String username) {
        return userDetailsService.findUserLikeUsername(username);
    }
@Test
    void testSearchUsersLikeUsername() {
        List<String> test = new ArrayList<>(1);
        
        when(userDetailsService.findUserLikeUsername(anyString())).thenReturn(test);
        List<String> list = userController.searchUsersLikeUsername("nacos");
        
        assertEquals(test, list);
    }