@Test
public void testCustomSerialization_badRequestBodyAfterSerialization() throws Exception {

  try {
    g.generateConfig(BadMethodRequestEndpoint.class).get("myapi-v1.api");
    fail("Type serialized to string should not be usable as a method request body");
  } catch (MissingParameterNameException e) {
    // expected
  }
}