public static Map<String, ResourceModel> buildResourceModels(final Set<Class<?>> restliAnnotatedClasses)
  {
    Map<String, ResourceModel> rootResourceModels = new HashMap<>();
    Map<Class<?>, ResourceModel> resourceModels = new HashMap<>();

    for (Class<?> annotatedClass : restliAnnotatedClasses)
    {
      processResourceInOrder(annotatedClass, resourceModels, rootResourceModels);
    }

    return rootResourceModels;
  }
@Test(dataProvider = "unsupportedFinderResourceTypeData",
      expectedExceptions = ResourceConfigException.class,
      expectedExceptionsMessageRegExp = "Class '.*' does not support @Finder methods, because it's an unstructured data resource")
  public void testFinderUnsupportedResourceType(Class<?> resourceClass)
  {
    RestLiApiBuilder.buildResourceModels(Collections.singleton(resourceClass));
  }