ProblemController { @GetMapping("{id}/attachment") public List<String> attachment(@PathVariable("id") long problemId, @RequestParam(value = "locale", required = false) @Nullable String requestLocale) { return problemService.attachment(problemId, requestLocale); }  @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 testAttachment() throws Exception { log.info("attachment"); long id = mockDataService.problem().getId(); String locale = ""; MockHttpServletResponse response = mvc.perform( get("/api/problems/{id}/attachment.json", id) .param("locale", locale)) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON)) .andReturn().getResponse(); }