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

    @RestLiSimpleResource(name = "simpleResourceWithUnsupportedMethod")
    class LocalClass extends SimpleResourceTemplate<EmptyRecord>
    {
      @RestMethod.GetAll
      public List<EmptyRecord> getAll() {
        return Collections.emptyList();
      }
    }

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