AccountController { @GetMapping(produces = XLS_VALUE) public void findAllXls(AccountForm form, Pageable pageable, @Nullable Locale requestLocale, HttpServletResponse response) throws IOException { Locale locale = Optional.ofNullable(requestLocale).orElse(Locale.ROOT); List<Account> content = accountService.findAllForExport(form, pageable); ExcelUtil.toResponse(Account.class, content, locale, ExcelType.XLS, accountService.getExcelName(locale), response); }  @GetMapping Page<User> findAll(AccountForm form, @PageableDefault(50) Pageable pageable); @PatchMapping("{userId}") @ResponseStatus(HttpStatus.NO_CONTENT) void update(@PathVariable("userId") String userId, @RequestBody User user); @PatchMapping("{userId}/password") @ResponseStatus(HttpStatus.NO_CONTENT) void updatePassword(@PathVariable("userId") String userId, @RequestBody UserPasswordForm user); @GetMapping(produces = XLSX_VALUE) void findAllXlsx(AccountForm form, Pageable pageable, @Nullable Locale requestLocale,
            HttpServletResponse response); @GetMapping(produces = XLS_VALUE) void findAllXls(AccountForm form, Pageable pageable, @Nullable Locale requestLocale,
            HttpServletResponse response); @PostMapping(consumes = MULTIPART_FORM_DATA_VALUE) List<Account> parseExcel(@RequestParam("file") MultipartFile multipartFile,
            @Nullable Locale locale); @ResponseStatus(HttpStatus.NO_CONTENT) @PostMapping(value = "import", consumes = APPLICATION_JSON_VALUE) void importUsers(@RequestBody AccountImportForm form); @GetMapping("password/status") Map<String, ?> passwordStatus();  }
@Test public void testFindAllXls() throws Exception { log.info("findAllXls"); test("/api/accounts.xls"); }