### Question:
JsonpModeler implements ContentModeler { @Override public void registerModel(String model) throws BagriException { JsonReader reader = factory.createReader(new StringReader(model)); JsonObject schema = reader.readObject(); processModel(schema); reader.close(); } JsonpModeler(ModelManagement modelMgr); @Override void init(Properties properties); @Override void registerModel(String model); @Override void registerModelUri(String modelUri);  }### Answer:
@Test public void registerPersonSchemaTest() throws Exception { JsonpParser parser = new JsonpParser(model); ParseResults results = parser.parse(json); List<Data> data = results.getResults(); modelPro.registerModel(schema); Collection<Path> paths = model.getTypePaths("/"); assertNotNull(paths); assertTrue(paths.size() > 0); assertEquals(data.size(), paths.size()); }
@Test public void registerSchemaPersonTest() throws Exception { modelPro.registerModel(schema); Collection<Path> paths = model.getTypePaths("/"); assertNotNull(paths); assertTrue(paths.size() > 0); JsonpParser parser = new JsonpParser(model); ParseResults results = parser.parse(json); List<Data> data = results.getResults(); assertNotNull(data); assertEquals(data.size(), paths.size()); }