@Test
    public void listPageSelectorDataPermissions() throws Exception {
        Integer currentPage = 1;
        Integer pageSize = 10;
        String userId = "testUserId";
        String pluginId = "testPluginId";
        String name = "testName";

        final PageParameter pageParameter = new PageParameter(currentPage, pageSize);
        final CommonPager<DataPermissionPageVO> commonPager = new CommonPager<>(pageParameter, Collections.singletonList(dataPermissionPageVO));
        given(this.dataPermissionService.listSelectorsByPage(
                new SelectorQuery(pluginId, name, pageParameter, SYS_DEFAULT_NAMESPACE_ID), userId)).willReturn(commonPager);

        this.mockMvc.perform(MockMvcRequestBuilders.get("/data-permission/selector")
                .param("currentPage", String.valueOf(currentPage))
                .param("pageSize", String.valueOf(pageSize))
                .param("userId", userId)
                .param("pluginId", pluginId)
                .param("name", name)
                .param("namespaceId", SYS_DEFAULT_NAMESPACE_ID))
                .andExpect(status().isOk())
                .andExpect(jsonPath("$.message", is(ShenyuResultMessage.QUERY_SUCCESS)))
                .andExpect(jsonPath("$.data.dataList[0].dataId", is(dataPermissionPageVO.getDataId())))
                .andReturn();
    }
add test case for {@link DataPermissionController}.
shenyu-admin/src/test/java/org/apache/shenyu/admin/controller/DataPermissionControllerTest.java