@Test
public void producesAndConsumesOnClassAddsHeader() throws Exception {

  final MethodMetadata md =
      parseAndValidateMetadata(ProducesAndConsumes.class, "producesAndConsumes");
  assertThat(md.template())
      .hasHeaders(entry("Content-Type", asList("application/json")),
          entry("Accept", asList("text/html")));
}