private static String expand(String template, Map<String, Object> variables) {
    RequestTemplate requestTemplate = new RequestTemplate();
    requestTemplate.uri(template);
    return requestTemplate.resolve(variables).url();
  }
Avoid depending on guava solely for map literals.
core/src/test/java/feign/RequestTemplateTest.java