code: public Collection<T> getDescriptors(TestClass testClass) {
          final List<T> descriptors = new ArrayList<T>();
          for (Method testMethod : testClass.getMethods(resourceAnnotation)) {
              descriptors.addAll(getDescriptorsDefinedFor(testMethod));
          }
          descriptors.addAll(obtainClassLevelDescriptor(testClass.getAnnotation(resourceAnnotation)));
          return descriptors;
      }
docs: Returns all resources defined for this test class
  including those defined on the test method level.