@Test
public void RDFTestCases() {
StableSerializerProvider ssp = new StableSerializerProvider();
Parser parser = Parser.getInstance();
Graph deserializedGraphOld = parser.parse(
getClass().getResourceAsStream(inputFileName), format);
TripleCollection tc = new SimpleMGraph();
tc.addAll(deserializedGraphOld);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ssp.serialize(baos, tc, "text/rdf+nt");
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
Graph deserializedGraphNew = parser.parse(bais, "text/rdf+nt");
Assert.assertEquals(deserializedGraphOld, deserializedGraphNew);
}