@Test
public void testDuplicateMethodEndpoint() throws Exception {

  ApiConfig config = createConfig(DuplicateMethodEndpoint.class);
  annotationReader.loadEndpointMethods(serviceContext, DuplicateMethodEndpoint.class,
      config.getApiClassConfig().getMethods());
  ApiMethodConfig method1 =
      config.getApiClassConfig().getMethods().get(methodToEndpointMethod(
          DuplicateMethodEndpoint.class.getMethod("foo", String.class)));
  assertEquals("api.foos.fn1", method1.getName());
  ApiMethodConfig method2 =
      config.getApiClassConfig().getMethods().get(methodToEndpointMethod(
          DuplicateMethodEndpoint.class.getMethod("foo", Integer.class)));
  assertEquals("api.foos.fn2", method2.getName());
}