### Question:
TemplateFileController extends AbstractController implements TemplateFileAPI { @Override @GetMapping public ResponseEntity<List<TemplateFileListVO>> list(@Valid TemplateFileQO templateFileQO) { List<TemplateFileListVO> list = templateFileService.list(templateFileQO); return ResponseEntity.ok(list); }  @Override @PostMapping @ResponseStatus(HttpStatus.CREATED) ResponseEntity<TemplateFileShowVO> save(@Valid @RequestBody TemplateFileAddDTO templateFileAddDTO); @Override @PostMapping(value = "/upload") @ResponseStatus(HttpStatus.CREATED) ResponseEntity<TemplateFileShowVO> upload(@RequestParam Integer templateId,
                                                     @RequestParam String fileDir,
                                                     MultipartFile file); @Override @PutMapping ResponseEntity<TemplateFileShowVO> update(@Valid @RequestBody TemplateFileUpdateDTO templateFileUpdateDTO); @Override @PutMapping(value = "/{fileId}/content") ResponseEntity<Integer> updateContent(@PathVariable Integer fileId,
                                                 @Valid @RequestBody TemplateFileContentUpdateDTO dto); @Override @GetMapping ResponseEntity<List<TemplateFileListVO>> list(@Valid TemplateFileQO templateFileQO); @Override @GetMapping(value = "/{fileId}") ResponseEntity<TemplateFileShowVO> show(@PathVariable Integer fileId); @Override @DeleteMapping(value = "/{fileId}") ResponseEntity<Integer> delete(@PathVariable Integer fileId); @Override @DeleteMapping ResponseEntity<Integer> deleteBatch(@RequestBody Integer[] id);  }### Answer:
@Test public void list() throws Exception { CodeTemplatePO codeTemplate = codeTemplateHelper.saveCodeTemplateExample(); TemplateFilePO templateFile = templateFileHelper.saveTemplateFileExample(codeTemplate.getTemplateId()); restMockMvc.perform(get(getApiPath() + "/template_file")) .andExpect(status().isOk()) .andExpect(jsonPath("$.length()").value(is(1))); }