@Test
public void testEmptyParameterBodies() throws Exception {

  String apiConfigSource = g.generateConfig(Endpoint1.class).get("myapi-v1.api");
  JsonNode root = objectMapper.readValue(apiConfigSource, JsonNode.class);
  JsonNode methods = root.path("methods");
  // foos.list
  JsonNode methodListFoo = methods.path("myapi.foos.list");
  assertFalse(methodListFoo.path("request").has("parameters"));
  // foos.get
  JsonNode methodGetFoo = methods.path("myapi.foos.get");
  assertTrue(methodGetFoo.path("request").has("parameters"));
  assertFalse(0 == methodGetFoo.path("request").path("parameters").size());
  //foos.insert
  JsonNode methodInsertFoo = methods.path("myapi.foos.insert");
  assertFalse(methodInsertFoo.path("request").has("parameters"));
}