Assert.assertEquals(1, mGraph.size());
}
@Test
public void typedLiterals() {
MGraph mGraph = new SimpleMGraph();
com.hp.hpl.jena.graph.Graph graph = new JenaGraph(mGraph);
Model model = ModelFactory.createModelForGraph(graph);
Literal typedLiteral = model.createTypedLiteral("<elem>foo</elem>", XMLLiteralType.theXMLLiteralType);
model.add(RDFS.Class, RDFS.label, typedLiteral);
Assert.assertEquals(1, mGraph.size());
StmtIterator iter = model.listStatements(RDFS.Class, RDFS.label, (Resource)null);
Assert.assertTrue(iter.hasNext());
RDFNode gotObject = iter.nextStatement().getObject();
Assert.assertEquals(typedLiteral, gotObject);
}