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

    @RestLiSimpleResource(name = "simpleResourceWithUnsupportedMethod")
    class LocalClass extends SimpleResourceTemplate<EmptyRecord>
    {
      @Action(name = "badAction", resourceLevel = ResourceLevel.COLLECTION)
      public void badAction(@ActionParam("someId") String someId) {
      }
    }

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