
    #[test]
    fn {name}() -> Result<(), CompilationError> {{
        let input_schema : serde_yaml::Value = serde_yaml::from_str(
            include_str!("{path}/input-schema.yml")).
            unwrap();
        let expected_json_schema : serde_json::Value = serde_json::from_str(
            include_str!("{path}/output-json-schema.json")).
            unwrap();
        let expected_ui_object : serde_json::Value  = serde_json::from_str(
            include_str!("{path}/output-uiobject.json")).
            unwrap();

        let (json_schema, ui_object) = Generator::with(input_schema)?.generate();

        if json_schema != expected_json_schema || ui_object != expected_ui_object {{
            eprintln!("JSONSchema:\n {{}}", serde_json::to_string_pretty( &json_schema).unwrap());
            eprintln!("UISchema:\n {{}}", serde_json::to_string_pretty( & ui_object).unwrap());
        }}

        assert_eq!(expected_json_schema, json_schema, "Actual(right) json schema different than expected (left)");
        assert_eq!(expected_ui_object, ui_object, "Actual(right) ui object different than expected (left)");

        Ok(())
    }}
