@Test
  void resolveTemplateWithHeaderSubstitutionsNotAtStart() {
    RequestTemplate template =
        new RequestTemplate().method(HttpMethod.GET).header("Authorization", "Bearer {token}");

    template = template.resolve(mapOf("token", "1234"));

    assertThat(template)
        .hasHeaders(entry("Authorization", Collections.singletonList("Bearer 1234")));
  }
Avoid depending on guava solely for map literals.
core/src/test/java/feign/RequestTemplateTest.java