@Test
public void testCanonicalName() throws Exception {

  @Api(name = "myapi", canonicalName = "My API")
  class CanonicalApi {
  }
  String apiConfigSource = g.generateConfig(CanonicalApi.class).get("myapi-v1.api");
  ObjectNode root = objectMapper.readValue(apiConfigSource, ObjectNode.class);
  assertEquals("myapi", root.path("name").asText());
  assertEquals("My API", root.path("canonicalName").asText());
}