@Test
public void testInvalidDateInEndpointRequest() throws Exception {

  @Api
  class DateParameter {
    @SuppressWarnings("unused")
    public void foo(Date date) {}
  }
  try {
    g.generateConfig(DateParameter.class).get("myapi-v1.api");
    fail("Dates should not be treated as resources");
  } catch (MissingParameterNameException expected) {
    // expected
  }
}