@GetMapping("/tagId/{tagId}")
    public ShenyuAdminResult queryApiByTagId(@PathVariable("tagId") @Valid final String tagId) {
        List<TagRelationDO> tagRelationDOS = Optional.ofNullable(tagRelationService.findByTagId(tagId)).orElse(Lists.newArrayList());
        return ShenyuAdminResult.success(ShenyuResultMessage.DETAIL_SUCCESS, tagRelationDOS);
    }
@Test
    public void testQueryApiByTagId() throws Exception {
        List<TagRelationDO> tagRelationDOS = new ArrayList<>();
        tagRelationDOS.add(buildTagRelationDO());
        given(tagRelationService.findByTagId(anyString())).willReturn(tagRelationDOS);
        this.mockMvc.perform(MockMvcRequestBuilders.get("/tag-relation/tagId/{tagId}", "123"))
                .andExpect(status().isOk())
                .andExpect(jsonPath("$.message", is(ShenyuResultMessage.DETAIL_SUCCESS)))
                .andReturn();
    }