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

    @RestLiCollection(name = "finderWithInvalidReturnType")
    class LocalClass extends CollectionResourceTemplate<Long, EmptyRecord>
    {
      @Finder("finderWithInvalidReturnType")
      public Map<Long, EmptyRecord> finderWithInvalidReturnType(@QueryParam("arg") long arg) {
        return Collections.emptyMap();
      }
    }

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