@Test
public void testSerialize() throws Exception {
getModelSet().readFrom(TestData.getFoafAsStream(), Syntax.RdfXml);
String serialize = getModelSet().serialize(Syntax.Nquads);
ModelSet m1 = getModelFactory().createModelSet();
m1.open();
m1.readFrom(new StringReader(serialize), Syntax.Nquads);
assertEquals(getModelSet().size(), m1.size());
m1.close();
}