public static ResourceModel processResource(final Class<?> resourceClass)
  {
    return processResource(resourceClass, null);
  }
@Test(description = "verifies return types of action resource methods", dataProvider = "actionReturnTypeData")
  public void actionResourceMethodReturnTypes(final Class<?> resourceClass, final Class<?> expectedActionReturnType)
  {
    final ResourceModel model = RestLiAnnotationReader.processResource(resourceClass);
    Assert.assertNotNull(model);

    for (final ResourceMethodDescriptor methodDescriptor : model.getResourceMethodDescriptors())
    {
      final Class<?> expectedReturnType = methodDescriptor.getActionReturnType();
      Assert.assertEquals(expectedReturnType, expectedActionReturnType);
    }
  }