IDocument doc = FileToDocUtility.getDocument(System.getProperty("user.dir") + "/resources/testfiles/test4.json");
doc.addPositionCategory(JSON_ELEMENTS);
JsonTextOutlineParser jtop = new JsonTextOutlineParser(doc);
JsonElement top = (JsonElement) jtop.parse();
Assert.assertEquals(3, top.getChildren().size());
JsonElement response = top.getChildren().get(2);
Assert.assertEquals(1, response.getChildren().size());
JsonElement representations = response.getChildren().get(0);
Assert.assertEquals(2, representations.getChildren().size());
JsonElement meta = representations.getChildren().get(0);
Assert.assertEquals(4, meta.getChildren().size());
JsonElement entries = meta.getChildren().get(1);
Assert.assertEquals(4, entries.getChildren().size());
JsonElement entries2 = meta.getChildren().get(2);
Assert.assertEquals(4, entries2.getChildren().size());
JsonElement entries3 = meta.getChildren().get(3);
Assert.assertEquals(4, entries3.getChildren().size());
}