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

    @RestLiCollection(name = "duplicateActionMethod")
    class LocalClass extends CollectionResourceTemplate<Long, EmptyRecord>
    {
      @Action(name = "duplicate")
      public EmptyRecord getThis(@ActionParam("id") Long id) {
        return new EmptyRecord();
      }

      @Action(name = "duplicate")
      public EmptyRecord getThat(@ActionParam("id") Long id) {
        return new EmptyRecord();
      }
    }

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