@Test
public void testServiceWithApiNameOverride() throws Exception {

  String apiConfigSource = g.generateConfig(
      ServiceContext.create("abc", "xyz"), Endpoint4.class).get("api4-v1.api");
  JsonNode root = objectMapper.readValue(apiConfigSource, JsonNode.class);
  assertEquals("api4", root.path("name").asText());
  JsonNode methods = root.path("methods");
  verifyEndpoint0Schema(root, Endpoint4.class.getName());
}