{
ObjectMapper mapper = getJaxbMapper();
JsonSchema jsonSchema = mapper.generateJsonSchema(Address.class);
ObjectNode root = jsonSchema.getSchemaNode();
// should find two properties ("city", "state"), not just one...
JsonNode itemsNode = root.findValue("properties");
assertNotNull("Missing 'state' field", itemsNode.get("state"));
assertNotNull("Missing 'city' field", itemsNode.get("city"));
assertEquals(2, itemsNode.size());
}
}