SubmitController { @GetMapping({"submitpage", "submit"}) public String submitPage(Model model, @RequestParam(value = "problem_id", required = false) Long problemId, Authentication authentication) { return page(null, problemId, authentication, model); }  @GetMapping({"submitpage", "submit"}) String submitPage(Model model,
            @RequestParam(value = "problem_id", required = false) Long problemId,
            Authentication authentication); @GetMapping({ "problems/{problemId}/submit", "contests/{contestId}/problems/{problemId}/submit" }) String contestSubmitPage(Model model,
            @PathVariable(value = "contestId", required = false) Long contestId,
            @PathVariable("problemId") long problemId,
            Authentication authentication); @PostMapping({ "problems/{problemId}/submit", "contests/{contestId}/problems/{problemId}/submit" }) synchronized String submit(HttpServletRequest request,
            @PathVariable(value = "contestId", required = false) Long contestId,
            @PathVariable("problemId") long problemId,
            @RequestParam("language") int languageId,
            @RequestParam("source") String source,
            RedirectAttributes redirectAttributes,
            Authentication authentication);  }
@Test public void testSubmitPage() throws Exception { log.info("submitPage"); Long problem_id = null; Long contest_id = null; String userId = mockDataService.user().getId(); MvcResult result = mvc.perform(get("/submitpage").with(user(userId)) .param("problem_id", Objects.toString(problem_id, "")) .param("contest_id", Objects.toString(contest_id, ""))) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.TEXT_HTML)) .andReturn(); }