AnnotatedValueResolver { static List<AnnotatedValueResolver> ofServiceMethod(Method method, Set<String> pathParams, List<RequestObjectResolver> objectResolvers) { return of(method, pathParams, objectResolvers, true, true); } private  AnnotatedValueResolver(@Nullable Class<? extends Annotation> annotationType,
                                   @Nullable String httpElementName,
                                   boolean isPathVariable, boolean shouldExist,
                                   boolean shouldWrapValueAsOptional,
                                   @Nullable Class<?> containerType, Class<?> elementType,
                                   @Nullable ParameterizedType parameterizedElementType,
                                   @Nullable String defaultValue,
                                   @Nullable String description,
                                   BiFunction<AnnotatedValueResolver, ResolverContext, Object> resolver,
                                   @Nullable BeanFactoryId beanFactoryId,
                                   AggregationStrategy aggregationStrategy); @Override String toString();  }
@Test void ofMethods() { getAllMethods(Service.class).forEach(method -> { try { final List<AnnotatedValueResolver> elements = AnnotatedValueResolver.ofServiceMethod(method, pathParams, objectResolvers); elements.forEach(AnnotatedValueResolverTest::testResolver); } catch (NoAnnotatedParameterException ignored) { } }); }