### Question:
MetaIndexController extends AbstractController implements MetaIndexAPI { @Override @PutMapping(value = "/update") public ResponseEntity<MetaIndexShowVO> update(@Valid @RequestBody MetaIndexUpdateDTO metaIndexUpdateDTO) { MetaIndexPO metaIndex = metaIndexService.update(metaIndexUpdateDTO); return ResponseEntity.ok(MetaIndexMapper.INSTANCE.toShowVO(metaIndex)); }  @Override @PostMapping(value = "/save") @ResponseStatus(HttpStatus.CREATED) ResponseEntity<MetaIndexShowVO> save(@Valid @RequestBody MetaIndexAddDTO metaIndexAddDTO); @Override @PutMapping(value = "/update") ResponseEntity<MetaIndexShowVO> update(@Valid @RequestBody MetaIndexUpdateDTO metaIndexUpdateDTO); @Override @GetMapping(value = "/list") ResponseEntity<List<MetaIndexListVO>> list(@Valid MetaIndexQO metaIndexQO); @Override @GetMapping(value = "/{indexId}") ResponseEntity<MetaIndexShowVO> show(@PathVariable Integer indexId); @Override @DeleteMapping(value = "/{indexId}") ResponseEntity<Integer> delete(@PathVariable Integer indexId); @Override @PutMapping(value = "/delete_batch") ResponseEntity<Integer> deleteBatch(@RequestBody Integer[] indexId); @Override @PutMapping(value = "/{indexId}/remove_field") ResponseEntity<Integer> removeField(@PathVariable Integer indexId, @RequestBody List<Integer> fieldIds);  }### Answer:
@Test public void update() throws Exception { MetaFieldPO metaField2 = generateHelper.saveFieldExample(metaEntity.getEntityId()); MetaIndexPO metaIndex = generateHelper.saveIndexExample(metaField.getFieldId(), metaField2.getFieldId()); MetaIndexUpdateDTO updateDTO = MetaIndexHelper.getUpdateDTO(metaIndex, metaField.getFieldId()); restMockMvc.perform(put(getApiPath() + "/meta_index/update") .contentType(MediaType.APPLICATION_JSON) .content(JsonUtil.toJSONString(updateDTO))) .andExpect(MockMvcResultMatchers.status().isOk()); }