@Test
public void testCollectionCovarianceEndpoint() throws Exception {

  ApiConfig config = createConfig(CollectionCovarianceEndpoint.class);
  annotationReader.loadEndpointMethods(serviceContext, CollectionCovarianceEndpoint.class,
      config.getApiClassConfig().getMethods());
  ApiMethodConfig method1 =
      config.getApiClassConfig().getMethods().get(methodToEndpointMethod(
          CollectionCovarianceEndpoint.class.getMethod("foo", List.class)));
  assertEquals("api.foos.fn", method1.getName());
  ApiMethodConfig method2 =
      config.getApiClassConfig().getMethods().get(methodToEndpointMethod(
          CollectionCovarianceEndpoint.class.getSuperclass().getMethod("foo", Collection.class)));
  assertEquals("api.foos.base", method2.getName());
}