@Test
public void testDeepGenericHierarchySuccessEndpoint() throws Exception {

  ApiConfig config = createConfig(DeepGenericHierarchySuccessEndpoint.class);
  annotationReader.loadEndpointMethods(serviceContext, DeepGenericHierarchySuccessEndpoint.class,
      config.getApiClassConfig().getMethods());
  assertEquals(1, config.getApiClassConfig().getMethods().size());
  assertNotNull(config.getApiClassConfig().getMethods().get(methodToEndpointMethod(
      DeepGenericHierarchySuccessEndpoint.class.getMethod(
          "foo", String.class, Integer.class, Boolean.class))));
}