ParsingProvider parsingProvider = new RdfJsonParsingProvider();
ByteArrayInputStream jsonIn = new ByteArrayInputStream(serializedGraph.toByteArray());
MGraph parsedMGraph = new SimpleMGraph();
parsingProvider.parse(parsedMGraph, jsonIn, "application/rdf+json", null);
Assert.assertEquals(originalSize, parsedMGraph.size());
sortedTriples = parsedMGraph.toArray(new Triple[parsedMGraph.size()]);
Arrays.sort(sortedTriples, RdfJsonSerializingProvider.SUBJECT_COMPARATOR);
Assert.assertEquals(mGraph.getGraph(), parsedMGraph.getGraph());
}
}