@Test
public void testValidDateInParameter() throws Exception {

  @Api
  class DateParameter {
    @SuppressWarnings("unused")
    public void foo(@Named("date") Date date) { }
  }
  String apiConfigSource = g.generateConfig(DateParameter.class).get("myapi-v1.api");
  ObjectNode root = objectMapper.readValue(apiConfigSource, ObjectNode.class);
  JsonNode request = root.path("methods").path("myapi.dateParameter.foo").path("request");
  verifyMethodRequestParameter(request, "date", "datetime", true, false);
  assertTrue(root.path("descriptor").path("schemas").path("Outcome").isMissingNode());
  verifyEmptyMethodRequest(root, DateParameter.class.getName() + ".pick");
}