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 = "finderSupportedResourceTypeData")
  public void testFinderSupportedResourceType(Class<?> resourceClass)
  {
    try
    {
      RestLiApiBuilder.buildResourceModels(Collections.singleton(resourceClass));
    }
    catch (Exception exception)
    {
      Assert.fail(String.format("Unexpected exception:  class: %s, message: \"%s\"",
              resourceClass.getSimpleName(), exception.getMessage()));
    }
  }