RejudgeController { @GetMapping(value = "admin/rejudge", params = "solution_id") public CompletableFuture<?> rejudgeSolution( @RequestParam("solution_id") long submissionId) { return rejudgeService.bySubmissionId(submissionId); }  @GetMapping(value = "admin/rejudge", params = "solution_id") CompletableFuture<?> rejudgeSolution(
            @RequestParam("solution_id") long submissionId); @GetMapping(value = "admin/rejudge", params = "problem_id") ResponseEntity<?> rejudgeProblem(@RequestParam("problem_id") long problemId);  }
@Test public void testRejudgeSolution() throws Exception { assumeTrue(Arrays.asList(environment.getActiveProfiles()).contains("appveyor"), "not appveyor"); log.info("rejudgeSolution"); long solutionId = submission.getId(); MvcResult result = mvc.perform(get("/admin/rejudge") .accept(MediaType.TEXT_HTML, MediaType.APPLICATION_JSON) .param("solution_id", Long.toString(solutionId))) .andExpect(request().asyncStarted()) .andReturn(); mvc.perform(asyncDispatch(result)) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON)) .andReturn(); }