@Test
public void testBeanPropertyDateType() throws Exception {

  ObjectMapper mapper = new ObjectMapper();
  ObjectNode schemasConfig = mapper.createObjectNode();
  writer.addTypeToSchema(schemasConfig, TypeToken.of(Bean.class), apiConfig, null);
  JsonNode beanConfig = schemasConfig.path("Bean");
  assertEquals("Bean", beanConfig.path("id").asText());
  assertEquals("object", beanConfig.path("type").asText());
  assertEquals("string", beanConfig.path("properties").path("date").path("type").asText());
  assertEquals("date-time", beanConfig.path("properties").path("date").path("format").asText());
}