@Test
public void testUnnamedTypeCollectionRequest() throws Exception {

  @Api
  class UnnamedCollection {
    @SuppressWarnings("unused")
    public void foo(Collection<String> dates){}
  }
  try {
    g.generateConfig(UnnamedCollection.class).get("myapi-v1.api");
    fail("Non-primitive array should have failed");
  } catch (MissingParameterNameException expected) {
    // expected
  }
}