@Test
public void testEndpointWithNoPublicMethods() throws Exception {

  String apiConfigSource = g.generateConfig(Endpoint2.class).get("myapi-v1.api");
  JsonNode root = objectMapper.readValue(apiConfigSource, JsonNode.class);
  JsonNode methods = root.path("methods");
  assertNull(methods.findValue("api2.foos.invisible0"));
  assertNull(methods.findValue("api2.foos.invisible1"));
}