private <T extends ResourceDTO> T getResource(final String uri, final String id, final Class<T> valueType) {
        ResponseEntity<ShenYuResult> response = template.exchange(baseURL + uri + "/{id}", HttpMethod.GET, new HttpEntity<>(basicAuth), ShenYuResult.class, id);
        Assertions.assertEquals(HttpStatus.OK, response.getStatusCode(), "checking http status");

        ShenYuResult rst = response.getBody();
        Assertions.assertNotNull(rst, "checking http response body");

        if (rst.getCode() == 500) {
            Assertions.assertTrue(rst.getMessage().contains("selector is not existed"), "checking shenyu result message");
            return null;
        }

        Assertions.assertEquals("detail success", rst.getMessage(), "checking shenyu result message");
        Assertions.assertEquals(200, rst.getCode(), "checking shenyu result code");
        return Assertions.assertDoesNotThrow(() -> rst.toObject(valueType), "checking cast data to " + valueType.getSimpleName());
    }
Fetch Selector by given id.

@param id of selector that needs to fetch
@return {@link SelectorDTO}
shenyu-e2e/shenyu-e2e-client/src/main/java/org/apache/shenyu/e2e/client/admin/AdminClient.java