@Test
public void headerParamsParseIntoIndexToName() throws Exception {

  final MethodMetadata md = parseAndValidateMetadata(HeaderParams.class, "logout", String.class);
  assertThat(md.template())
      .hasHeaders(entry("Auth-Token", asList("{Auth-Token}")));
  assertThat(md.indexToName())
      .containsExactly(entry(0, asList("Auth-Token")));
}