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

    @RestLiCollection(name = "invalidActionReturnType")
    class LocalClass extends CollectionResourceTemplate<Long, EmptyRecord> {
      @Action(name = "nonInstantiableTypeRef", returnTyperef = BrokenTypeRef.class)
      public BrokenTypeRef nonInstantiableTypeRef(@ActionParam(value = "someId") String someId) {
        return null;
      }
    }

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