@Test
void testJsonSchema() throws IOException {

    InputStream in = new ByteArrayInputStream(example.getBytes());
    Map<String,Object> schemaMap = JsonSchemaUtil.load(in);
    in.close();
    assertEquals ("object", schemaMap.get("type"));
    Map<String,Object> properties = (Map<String,Object>)schemaMap.get("properties");
    assertEquals(2,properties.size());
    assertTrue((Boolean)((Map)properties.get("approved")).get("output"));
    assertTrue((Boolean)((Map)properties.get("traveller")).get("input"));
}