@Test
public void testTitle() throws Exception {

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