@Test
public void testMultipleCollectionRequests() throws Exception {

  @Api
  class MultipleCollections {
    @SuppressWarnings("unused")
    public void foo(@Named("ids") Long[] ids, @Named("authors") List<String> authors) {}
  }
  String apiConfigSource = g.generateConfig(MultipleCollections.class).get("myapi-v1.api");
  ObjectNode root = objectMapper.readValue(apiConfigSource, ObjectNode.class);
  JsonNode methodNode = root.path("methods").path("myapi.multipleCollections.foo");
  assertFalse(methodNode.isMissingNode());
  verifyMethodRequestParameter(methodNode.get("request"), "ids", "int64", true, true);
  verifyMethodRequestParameter(methodNode.get("request"), "authors", "string", true, true);
}