mapper.acceptJsonFormatVisitor(mapper.constructType(Leaf.class), visitor);
JsonSchema schemaExp = visitor.finalSchema();
assertNotNull(schemaExp);
visitor = new SchemaFactoryWrapper();
mapper.acceptJsonFormatVisitor(mapper.constructType(ContainerWithAsValue.class), visitor);
JsonSchema schemaAct = visitor.finalSchema();
assertNotNull(schemaAct);
// these are minimal checks:
assertEquals(schemaExp.getType(), schemaAct.getType());