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

    @RestLiCollection(name = "nonPublicCreateMethod")
    class LocalClass extends CollectionResourceTemplate<Long, EmptyRecord>
    {
      @RestMethod.Create
      CreateResponse protectedCreate(EmptyRecord entity)
      {
        return new CreateResponse(HttpStatus.S_200_OK);
      }
    }

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