### Question:
TagsController { @ApiOperation(value = "增加文章标签", notes = "id") @PostMapping @OptLog(operationType = OptLogType.ADD, operationName = "增加文章标签") public JsonData<Void> insertArticle(@RequestBody @Validated TagDto tagDto) { tagsService.saveOrUpdate(tagDto); return JsonData.success(); } TagsController(TagsService tagsService); @ApiOperation(value = "查询标签集合", notes = "tags") @GetMapping JsonData<Page<TagDto>> findArticleByCondition(TagDto tagDto,
	                                                     @PageableDefault(sort = "createAt", direction = DESC) Pageable pageable); @ApiOperation(value = "按照id查询标签", notes = "id") @GetMapping(value = "/{id}") JsonData<TagDto> findArticleByPrimaryKey(@PathVariable String id); @ApiOperation(value = "增加文章标签", notes = "id") @PostMapping @OptLog(operationType = OptLogType.ADD, operationName = "增加文章标签") JsonData<Void> insertArticle(@RequestBody @Validated TagDto tagDto); @ApiOperation(value = "按照id修改", notes = "id") @PutMapping @OptLog(operationType = OptLogType.MODIFY, operationName = "修改文章标签") JsonData<Void> updateTagsById(@RequestBody @Validated TagDto tagDto); @ApiOperation(value = "删除", notes = "id") @DeleteMapping @OptLog(operationType = OptLogType.DELETE, operationName = "删除文章标签") JsonData<Void> delete(@RequestBody List<String> articleIds);  }### Answer:
@Test void testInsertArticle() { JsonData<Void> result = tagsController.insertArticle(new TagDto()); Assertions.assertEquals(new JsonData<Void>(true, 0, "message", any()), result); }