Statements { public static <C extends Collection<Statement>> C create(ValueFactory vf, Resource subject, IRI predicate, Value object, C collection, Resource... contexts) { Objects.requireNonNull(collection); consume(vf, subject, predicate, object, st -> collection.add(st), contexts); return collection; }  static void consume(ValueFactory vf, Resource subject, IRI predicate, Value object,
			Consumer<Statement> consumer, Resource... contexts); static C create(ValueFactory vf, Resource subject, IRI predicate,
			Value object, C collection, Resource... contexts); static Statement stripContext(Statement statement); static Statement stripContext(ValueFactory vf, Statement statement); static Triple toTriple(Statement statement); static Triple toTriple(ValueFactory vf, Statement statement); static Statement toStatement(Triple triple); static Statement toStatement(Triple triple, Resource context); static Statement toStatement(ValueFactory vf, Triple triple, Resource context); static boolean isSameTriple(Statement st1, Statement st2); @Experimental static void convertRDFStarToReification(Statement st, Consumer<Statement> consumer); @Experimental static void convertRDFStarToReification(ValueFactory vf, Statement st, Consumer<Statement> consumer); @Experimental static void convertRDFStarToReification(ValueFactory vf, Function<Triple, Resource> reifiedIdMapper,
			Statement st, Consumer<Statement> consumer); @Experimental
	static Function<Triple, Resource> TRIPLE_BNODE_MAPPER; }
@Test public void testMultipleContexts() { Resource c1 = vf.createIRI("urn:c1"); Resource c2 = vf.createIRI("urn:c1"); Resource c3 = vf.createIRI("urn:c1"); Model m = Statements.create(vf, FOAF.AGE, RDF.TYPE, RDF.PROPERTY, new TreeModel(), c1, c2, null, c3); assertFalse(m.isEmpty()); assertTrue(m.contains(FOAF.AGE, RDF.TYPE, RDF.PROPERTY, (Resource) null)); assertTrue(m.contains(FOAF.AGE, RDF.TYPE, RDF.PROPERTY, c1)); assertTrue(m.contains(FOAF.AGE, RDF.TYPE, RDF.PROPERTY, c2)); assertTrue(m.contains(FOAF.AGE, RDF.TYPE, RDF.PROPERTY, c3)); }
@Test public void testNoContext() { Model m = Statements.create(vf, FOAF.AGE, RDF.TYPE, RDF.PROPERTY, new TreeModel()); assertFalse(m.isEmpty()); assertTrue(m.contains(FOAF.AGE, RDF.TYPE, RDF.PROPERTY)); }