@Test
public void testGenericBasePartiallySpecializedEndpoint() throws Exception {

  ApiConfig config = createConfig(RestfulResourceEndpointBase.PartiallySpecializedEndpoint.class);
  annotationReader.loadEndpointMethods(serviceContext,
          RestfulResourceEndpointBase.PartiallySpecializedEndpoint.class,
          config.getApiClassConfig().getMethods());
  assertEquals(6, config.getApiClassConfig().getMethods().size());
  assertNull(config.getApiClassConfig().getMethods().get(methodToEndpointMethod(
      RestfulResourceEndpointBase.FullySpecializedEndpoint.class.getMethod("list"))));
  assertNotNull(config.getApiClassConfig().getMethods().get(methodToEndpointMethod(
      RestfulResourceEndpointBase.PartiallySpecializedEndpoint.class,
      RestfulResourceEndpointBase.PartiallySpecializedEndpoint.class.getMethod(
          "get", long.class))));
  assertNotNull(config.getApiClassConfig().getMethods().get(methodToEndpointMethod(
      RestfulResourceEndpointBase.PartiallySpecializedEndpoint.class,
      RestfulResourceEndpointBase.class.getMethod("list"))));
}