protected RequestMappingInfo getPluginMappingForMethod(String pluginId,
        Method method, Class<?> handlerType) {
        RequestMappingInfo info = super.getMappingForMethod(method, handlerType);
        if (info != null) {
            ApiVersion apiVersion = handlerType.getAnnotation(ApiVersion.class);
            if (apiVersion == null) {
                return info;
            }
            info = RequestMappingInfo.paths(buildPrefix(pluginId, apiVersion.value())).build()
                .combine(info);
        }
        return info;
    }
@Test
    public void shouldAddPathPrefixWhenExistingApiVersion() throws Exception {
        Method method = UserController.class.getMethod("getUser");
        RequestMappingInfo info =
            this.handlerMapping.getPluginMappingForMethod("fakePlugin", method,
                UserController.class);

        assertThat(info).isNotNull();
        assertThat(info.getPatternsCondition().getPatterns()).isEqualTo(
            Collections.singleton(
                new PathPatternParser().parse(
                    "/apis/api.plugin.halo.run/v1alpha1/plugins/fakePlugin/user/{id}")));
    }