@Test
public void testStringRequestThrowsException() throws Exception {

  try {
    String apiConfigSource = g.generateConfig(StringRequestEndpoint.class).get("myapi-v1.api");
    fail("String request body didn't fail in config generation");
  } catch (MissingParameterNameException e) {
    // expected
  }
}