### Question:
MetaChartSourceController extends AbstractController implements MetaChartSourceAPI { @Override @DeleteMapping public ResponseEntity<Integer> deleteBatch(@RequestBody Integer[] id) { if(ArrayUtils.isEmpty(id)){ throw new BusinessException(ErrorCode.PARAM_IS_NULL); } int count = metaChartSourceService.delete(id); return ResponseEntity.ok(count); }  @Override @PostMapping @ResponseStatus(HttpStatus.CREATED) ResponseEntity<MetaChartSourceShowVO> save(@Valid @RequestBody MetaChartSourceAddDTO metaChartSourceAddDTO); @Override @PutMapping ResponseEntity<MetaChartSourceShowVO> update(@Valid @RequestBody MetaChartSourceUpdateDTO metaChartSourceUpdateDTO); @Override @PostMapping(value = "/with_items") @ResponseStatus(HttpStatus.CREATED) ResponseEntity<MetaChartSourceShowVO> saveWithItems(@Valid @RequestBody MetaChartSourceWithItemsAddDTO addDTO); @Override @PutMapping(value = "/with_items") ResponseEntity<MetaChartSourceShowVO> updateWithItems(@Valid @RequestBody MetaChartSourceWithItemsUpdateDTO updateDTO); @Override @GetMapping(value = "/{sourceId}") ResponseEntity<MetaChartSourceShowVO> show(@PathVariable Integer sourceId); @Override @GetMapping(value = "/{sourceId}/with_items") ResponseEntity<MetaChartSourceWithItemsShowVO> showWithItems(@PathVariable Integer sourceId); @Override @DeleteMapping ResponseEntity<Integer> deleteBatch(@RequestBody Integer[] id);  }### Answer:
@Test public void deleteBatch() throws Exception { MetaChartSourcePO metaChartSource = metaChartSourceHelper.saveMetaChartSourceExample( this.metaProject.getProjectId(), this.metaEntity.getEntityId()); restMockMvc.perform(delete(getApiPath() + "/meta_chart_source") .contentType(MediaType.APPLICATION_JSON) .content(JsonUtil.toJSONString(Lists.newArrayList(metaChartSource.getSourceId())))) .andExpect(status().isOk()) .andExpect(jsonPath("$").value(is(1))); }