code: func (c *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error) {
  	action := testing.ActionImpl{
  		Verb:     "get",
  		Resource: schema.GroupVersionResource{Resource: "resource"},
  	}
  	c.Invokes(action, nil)
  	for _, resourceList := range c.Resources {
  		if resourceList.GroupVersion == groupVersion {
  			return resourceList, nil
  		}
  	}
  	return nil, fmt.Errorf("GroupVersion %q not found", groupVersion)
  }
docs: // ServerResourcesForGroupVersion returns the supported resources for a group
  // and version.