@Test
public void testInvalidEnumInEndpointRequest() throws Exception {

  @Api
  class EnumParameter {
    @SuppressWarnings("unused")
    public void pick(Outcome outcome) {}
  }
  try {
    g.generateConfig(EnumParameter.class).get("myapi-v1.api");
    fail("Enums should not be treated as resources");
  } catch (MissingParameterNameException expected) {
    // expected
  }
}