@Test
public void testDuplicateMethodEndpoint() throws Exception {

  try {
    g.generateConfig(DuplicateMethodEndpoint.class);
    fail("Config generation for endpoint with overloaded method should have failed.");
  } catch (OverloadedMethodException expected) {
    // expected
  }
}