public Pet pet;
}
public void testAddingTitle() throws Exception
{
TitleSchemaFactoryWrapper visitor = new TitleSchemaFactoryWrapper();
ObjectMapper mapper = new ObjectMapper();
mapper.acceptJsonFormatVisitor(Person.class, visitor);
JsonSchema schema = visitor.finalSchema();
assertTrue("schema should be an objectSchema.", schema.isObjectSchema());
String title = schema.asObjectSchema().getTitle();
assertNotNull(title);
assertTrue("schema should have a title", title.indexOf("Person") != -1);