AccountController { @GetMapping("password/status") public Map<String, ?> passwordStatus() { return resetPasswordService.stats(); }  @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 testPasswordStatus() throws Exception { log.info("passwordStatus"); MvcResult result = mvc.perform(get("/api/accounts/password/status.json")) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON)) .andExpect(jsonPath("$.content").isMap()) .andExpect(jsonPath("$.stats").isMap()) .andReturn(); }