@Test
public void bodyParamIsGeneric() throws Exception {

  final MethodMetadata md = parseAndValidateMetadata(BodyParams.class, "post", List.class);
  assertThat(md.bodyIndex())
      .isEqualTo(0);
  assertThat(md.bodyType())
      .isEqualTo(JAXRSContractTest.class.getDeclaredField("STRING_LIST").getGenericType());
}