@Test
public void testArrayOfSerializedResources() throws Exception {

  @Api
  class ResourceCollection {
    @SuppressWarnings("unused")
    public void foo(@Named("beans") List<StringBean> beans) {}
  }
  String apiConfigSource = g.generateConfig(ResourceCollection.class).get("myapi-v1.api");
  ObjectNode root = objectMapper.readValue(apiConfigSource, ObjectNode.class);
  JsonNode methodNode = root.path("methods").path("myapi.resourceCollection.foo");
  assertFalse(methodNode.isMissingNode());
  verifyMethodRequestParameter(methodNode.get("request"), "beans", "string", true, true);
}