public static ResourceModel processResource(final Class<?> resourceClass)
  {
    return processResource(resourceClass, null);
  }
@Test(expectedExceptions = ResourceConfigException.class)
  public void failsOnNonPublicActionMethod() {

    @RestLiCollection(name = "nonPublicActionMethod")
    class LocalClass extends CollectionResourceTemplate<Long, EmptyRecord>
    {
      @Action(name = "protectedAction")
      protected void protectedAction(@ActionParam("actionParam") String actionParam) {
      }
    }

    RestLiAnnotationReader.processResource(LocalClass.class);
    Assert.fail("#addActionResourceMethod should fail throwing a ResourceConfigException");
  }