@Test
public void testUnnamedTypeArrayRequest() throws Exception {

  @Api class UnnamedArray {
    @SuppressWarnings("unused")
    public void foo(Long[] dates) {}
  }
  try {
    g.generateConfig(UnnamedArray.class).get("myapi-v1.api");
    fail("Non-primitive array should have failed");
  } catch (MissingParameterNameException expected) {
    // expected
  }
}