@Test
public void testDefaultEndpointOnGooglePlex() throws Exception {

  String apiConfigSource = g.generateConfig(
      ServiceContext.create("google.com:myapp", "myapi"), Endpoint0.class)
      .get("myapi-v1.api");
  JsonNode root = objectMapper.readValue(apiConfigSource, JsonNode.class);
  assertEquals("myapi", root.path("name").asText());
  assertEquals("https://myapp.googleplex.com/_ah/api", root.path("root").asText());
  assertEquals("https://myapp.googleplex.com/_ah/spi", root.path("adapter").path("bns").asText());
}