LegacyAdminController { @Deprecated @GetMapping("admin.showproblem") public String showProblem(@RequestParam("problem_id") long problemId, RedirectAttributes redirectAttributes) { redirectAttributes.addAttribute("problemId", problemId); return "redirect:/admin/problems/{problemId}.html"; }  @Deprecated @GetMapping("admin.showproblem") String showProblem(@RequestParam("problem_id") long problemId,
            RedirectAttributes redirectAttributes); @Deprecated @GetMapping("admin.showcontest") String showContest(@RequestParam("contest_id") long contestId,
            RedirectAttributes redirectAttributes); @Deprecated @GetMapping("admin.rejudge") String rejudge(HttpServletRequest request);  }
@Test public void testShowProblem() throws Exception { log.info("showProblem"); long problemId = 0; MvcResult result = mvc.perform(get("/admin.showproblem").param("problem_id", Long.toString(problemId))) .andExpect(redirectedUrl("/admin/problems/" + problemId + ".html")) .andReturn(); }