@Test
public void producesAddsAcceptHeader() throws Exception {

  final MethodMetadata md = parseAndValidateMetadata(ProducesAndConsumes.class, "produces");
  /* multiple @Produces annotations should be additive */
  assertThat(md.template())
      .hasHeaders(
          entry("Content-Type", asList("application/json")),
          entry("Accept", asList("application/xml")));
}