ProblemListController { @GetMapping({"problemlist", "problems"}) public String problemList(ProblemForm form, Model model, Locale locale, Authentication authentication, @PageableDefault(100) Pageable pageable, HttpServletRequest request) { String currentUserId = authentication != null ? authentication.getName() : null; String url = URIBuilder.fromRequest(request).replaceQueryParam("page").toString(); model.addAttribute("url", url); form.setDisabled(Boolean.FALSE); Page<Problem> page = problemService.findAll(form, currentUserId, pageable, locale); model.addAttribute("page", page); return "problems/list"; }  @GetMapping({"problemlist", "problems"}) String problemList(ProblemForm form, Model model, Locale locale, Authentication authentication,
            @PageableDefault(100) Pageable pageable, HttpServletRequest request); @GetMapping("searchproblem") String searchProblem(ProblemForm form, Model model, Locale locale, Authentication authentication,
            @PageableDefault(1000) Pageable pageable, HttpServletRequest request);  }
@Test public void testProblemList() throws Exception { log.info("problemList"); String sstr = ""; Boolean disabled = null; Locale locale = Locale.getDefault(); MvcResult result = mvc.perform(get("/problemlist") .param("sstr", sstr) .param("disabled", Objects.toString(disabled, "")) .locale(locale)) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.TEXT_HTML)) .andReturn(); }