@Test
public void testEmptyRequestBodies() throws Exception {

  String apiConfigSource = g.generateConfig(Endpoint1.class).get("myapi-v1.api");
  JsonNode root = objectMapper.readValue(apiConfigSource, JsonNode.class);
  JsonNode methods = root.path("methods");
  // myapi.foos.get
  JsonNode methodGetFoo = methods.path("myapi.foos.get");
  assertTrue(methodGetFoo.path("request").path("body").asText().equals("empty"));
  assertFalse(root.path("descriptor").path("methods")
      .path(methodGetFoo.path("rosyMethod").asText()).has("request"));
  // myapi.foos.insert
  JsonNode methodInsertFoo = methods.path("myapi.foos.insert");
  assertFalse(methodInsertFoo.path("request").path("body").asText().equals("empty"));
  assertTrue(root.path("descriptor").path("methods")
      .path(methodInsertFoo.path("rosyMethod").asText()).has("request"));
  // myapi.foos.execute0
  JsonNode methodExecute0 = methods.path("myapi.foos.execute0");
  assertTrue(methodExecute0.path("request").path("body").asText().equals("empty"));
  assertFalse(root.path("descriptor").path("methods")
      .path(methodExecute0.path("rosyMethod").asText()).has("request"));
}