protected String buildPrefix(String pluginName, String apiVersion) {
        GroupVersion groupVersion = GroupVersion.parseAPIVersion(apiVersion);
        if (StringUtils.hasText(groupVersion.group())) {
            // apis/{group}/{version}
            return String.format("/apis/%s/%s", groupVersion.group(), groupVersion.version());
        }
        // apis/api.plugin.halo.run/{version}/plugins/{pluginName}
        return String.format("/apis/api.plugin.halo.run/%s/plugins/%s", groupVersion.version(),
            pluginName);
    }
@Test
    void buildPrefix() {
        String s = handlerMapping.buildPrefix("fakePlugin", "v1");
        assertThat(s).isEqualTo("/apis/api.plugin.halo.run/v1/plugins/fakePlugin");

        s = handlerMapping.buildPrefix("fakePlugin", "fake.halo.run/v1alpha1");
        assertThat(s).isEqualTo("/apis/fake.halo.run/v1alpha1");
    }