@Test
public void testEndpointNoApiAnnotation() throws Exception {

  try {
    g.generateConfig(Object.class);
    fail("Config generation for service class with no @Api annotation should have failed");
  } catch (ApiConfigException e) {
    // expected
  }
}