ProblemController { @GetMapping public Page<Problem> list(ProblemForm problemForm, @PageableDefault(100) Pageable pageable, Locale locale) { log.info("pageable: {}", pageable); return problemService.findAll(problemForm, null, pageable, locale); }  @PostMapping Problem save(@RequestBody Problem problem); @DeleteMapping("{id}") @ResponseStatus(HttpStatus.NO_CONTENT) void delete(@PathVariable("id") long id); @GetMapping("{id}/dataDir") Map<String, String> dataDir(@PathVariable("id") long id); @GetMapping("{id}") Problem findOne(@PathVariable("id") long id,
            @RequestParam(value = "locale", required = false) @Nullable String lang); @GetMapping Page<Problem> list(ProblemForm problemForm, @PageableDefault(100) Pageable pageable, Locale locale); @PatchMapping("{id}") @ResponseStatus(HttpStatus.NO_CONTENT) void update(@PathVariable("id") long problemId, @RequestBody Problem p,
            @RequestParam(value = "locale", required = false) @Nullable String requestLocale); @GetMapping("{id}/attachment") List<String> attachment(@PathVariable("id") long problemId,
            @RequestParam(value = "locale", required = false) @Nullable String requestLocale);  }
@Test public void testList() throws Exception { mvc.perform(get("/api/problems.json")) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON)); }