private Mono<ServerResponse> getByName(ServerRequest request) {
        String name = request.pathVariable("name");
        return client.get(Category.class, name)
            .map(CategoryVo::from)
            .flatMap(categoryVo -> ServerResponse.ok()
                .contentType(MediaType.APPLICATION_JSON)
                .bodyValue(categoryVo)
            );
    }
@Test
    void getByName() {
        Category category = new Category();
        category.setMetadata(new Metadata());
        category.getMetadata().setName("test");
        when(client.get(eq(Category.class), eq("test"))).thenReturn(Mono.just(category));

        webTestClient.get()
            .uri("/categories/test")
            .exchange()
            .expectStatus().isOk()
            .expectHeader().contentType(MediaType.APPLICATION_JSON)
            .expectBody()
            .jsonPath("$.metadata.name").isEqualTo(category.getMetadata().getName());
    }