@Test
public void testArrayOfResources() throws Exception {

  @Api
  class ResourceCollection {
    @SuppressWarnings("unused")
    public void foo(List<Bean> beans) {}
  }
  try {
    g.generateConfig(ResourceCollection.class).get("myapi-v1.api");
    fail("Array of resources should fail");
  } catch (CollectionResourceException expected) {
    // expected
  }
}