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

    @RestLiCollection(name = "batchFinderWithInvalidBatchParamType")
    class LocalClass extends CollectionResourceTemplate<Long, EmptyRecord>
    {
      @BatchFinder(value = "batchFinderWithInvalidBatchParamType", batchParam = "criteria")
      public List<EmptyRecord> batchFinderWithInvalidBatchParamType(@QueryParam("criteria") String[] criteria) {
        return Collections.emptyList();
      }
    }

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