@GetMapping("")
    public ShenyuAdminResult queryApis(final String apiPath, final Integer state,
                                       final String tagId,
                                       @NotNull final Integer currentPage,
                                       @NotNull final Integer pageSize) {
        CommonPager<ApiVO> commonPager = apiService.listByPage(new ApiQuery(apiPath, state, tagId, new PageParameter(currentPage, pageSize)));
        return ShenyuAdminResult.success(ShenyuResultMessage.QUERY_SUCCESS, commonPager);
    }
@Test
    public void testQueryApis() throws Exception {
        final PageParameter pageParameter = new PageParameter();
        List<ApiVO> apiVOS = new ArrayList<>();
        apiVOS.add(apiVO);
        final CommonPager<ApiVO> commonPager = new CommonPager<>();
        commonPager.setPage(pageParameter);
        commonPager.setDataList(apiVOS);
        final ApiQuery apiQuery = new ApiQuery("string", 0, "", pageParameter);
        given(this.apiService.listByPage(apiQuery)).willReturn(commonPager);
        this.mockMvc.perform(MockMvcRequestBuilders.get("/api")
                        .param("apiPath", "string")
                        .param("state", "0")
                        .param("tagId", "")
                        .param("currentPage", String.valueOf(pageParameter.getCurrentPage()))
                        .param("pageSize", String.valueOf(pageParameter.getPageSize())))
                .andExpect(status().isOk())
                .andExpect(jsonPath("$.message", is(ShenyuResultMessage.QUERY_SUCCESS)))
                .andExpect(jsonPath("$.data.dataList[0].contextPath", is(apiVO.getContextPath())))
                .andReturn();
    }