Assert.assertEquals("noproblem", writer.toString());
}
@Test
public void loopWithEmptyList() throws IOException {
TripleCollection mGraph = new SimpleMGraph();
NonLiteral resource = new BNode() {
};
NonLiteral listNode1 = new BNode() {
};
mGraph.add(new TripleImpl(resource, RDF.value, listNode1));
List<Resource> list1 = new RdfList(listNode1, mGraph);
list1.add(new PlainLiteralImpl("first"));
list1.add(new PlainLiteralImpl("second"));
list1.add(new PlainLiteralImpl("third"));
NonLiteral listNode2 = new BNode() {
};
mGraph.add(new TripleImpl(resource, RDF.value, listNode2));
RdfList.createEmptyList(listNode2, mGraph);
GraphNode node = new GraphNode(resource, mGraph);
DataFieldResolver dataFieldResolver = new GraphNodeDataFieldResolver(node, simpleFunctions);