@Test
  void injectBeanParam() throws Exception {
    final MethodMetadata methodMetadata =
        parseAndValidateMetadata(JakartaInternals.class, "beanParameters", BeanParamInput.class);
    assertThat(methodMetadata.template()).noRequestBody();

    assertThat(methodMetadata.template())
        .hasHeaders(entry("X-Custom-Header", asList("{X-Custom-Header}")));
    assertThat(methodMetadata.template()).hasQueries(entry("query", asList("{query}")));
    assertThat(methodMetadata.formParams()).isNotEmpty().containsExactly("form");
  }
Tests interfaces defined per {@link JAXRS3Contract} are interpreted into expected {@link feign
.RequestTemplate template} instances.
jaxrs4/src/test/java/feign/jaxrs/JAXRS4ContractTest.java