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

    @RestLiCollection(name = "duplicateBatchFinderMethod")
    class LocalClass extends CollectionResourceTemplate<Long, EmptyRecord>
    {
      @BatchFinder(value = "duplicate", batchParam = "criteria")
      public BatchFinderResult<EmptyRecord, EmptyRecord, EmptyRecord> batchFindThis(@QueryParam("criteria") EmptyRecord[] criteria) {
        return new BatchFinderResult<>();
      }

      @BatchFinder(value = "duplicate", batchParam = "criteria")
      public BatchFinderResult<EmptyRecord, EmptyRecord, EmptyRecord> batchFindThat(@QueryParam("criteria") EmptyRecord[] criteria) {
        return new BatchFinderResult<>();
      }
    }

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