@Test
  void contractWithRuntimeInjection() throws InterruptedException {
    server.enqueue(new MockResponse());

    String baseUrl = server.url("/default").toString();
    ApplicationContext context = new AnnotationConfigApplicationContext(FeignConfiguration.class);

    Feign.builder()
        .contract(context.getBean(Contract.class))
        .target(TestExpander.class, baseUrl)
        .get("FOO");

    assertThat(server.takeRequest()).hasPath("/default/path?query=foo");
  }
Injects {@link MethodMetadata#indexToExpander(Map)} via {@link BeanFactory#getBean(Class)}.
core/src/test/java/feign/ContractWithRuntimeInjectionTest.java