@Test
public void testEndpointWithOnlyDefaultConfiguration() throws Exception {

  String apiConfigSource = g.generateConfig(Endpoint0.class).get("myapi-v1.api");
  JsonNode root = objectMapper.readValue(apiConfigSource, JsonNode.class);
  verifyApi(root, "thirdParty.api", "https://myapp.appspot.com/_ah/api",
      "myapi", "v1", "", "https://myapp.appspot.com/_ah/spi", false, true);
  JsonNode methodGetFoo = root.path("methods").path("myapi.endpoint0.getFoo");
  verifyMethod(methodGetFoo, "foo/{id}", HttpMethod.GET, Endpoint0.class.getName() + ".getFoo",
      "autoTemplate(backendResponse)");
  verifyMethodRequest(methodGetFoo.path("request"), "empty", 1);
  verifyMethodRequestParameter(methodGetFoo.path("request"), "id", "string", true, false);
  verifyEndpoint0Schema(root, Endpoint0.class.getName());
}