@Override
    public Flux<ExtensionStore> listByNamePrefix(String prefix) {
        return repository.findAllByNameStartingWith(prefix);
    }
@Test
    void listByNamePrefix() {
        var expectedExtensions = List.of(
            new ExtensionStore("/registry/posts/hello-world", "this is post".getBytes(), 1L),
            new ExtensionStore("/registry/posts/hello-halo", "this is post".getBytes(), 1L)
        );

        when(repository.findAllByNameStartingWith("/registry/posts"))
            .thenReturn(Flux.fromIterable(expectedExtensions));

        var gotExtensions = client.listByNamePrefix("/registry/posts").collectList().block();
        assertEquals(expectedExtensions, gotExtensions);
    }