Statements { public static void consume(ValueFactory vf, Resource subject, IRI predicate, Value object, Consumer<Statement> consumer, Resource... contexts) { OpenRDFUtil.verifyContextNotNull(contexts); Objects.requireNonNull(consumer); if (contexts.length > 0) { for (Resource context : contexts) { consumer.accept(vf.createStatement(subject, predicate, object, context)); } } else { consumer.accept(vf.createStatement(subject, predicate, object)); } }  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 testInvalidInput() { try { Statements.consume(vf, FOAF.AGE, RDF.TYPE, RDF.PROPERTY, st -> fail("should have resulted in Exception"), null); } catch (IllegalArgumentException e) { } try { Statements.consume(vf, null, RDF.TYPE, RDF.PROPERTY, st -> fail("should have resulted in Exception")); } catch (NullPointerException e) { } }