@Test
public void testList() {

	Node n = handler.list("<one>", "?var", "'three'");        
	
	Node one = NodeFactory.createURI("one");
	Node two = Var.alloc("var").asNode();
	Node three = NodeFactory.createLiteral( "three");
	
	ElementPathBlock epb = new ElementPathBlock();
	Node firstObject = NodeFactory.createBlankNode();		
	Node secondObject = NodeFactory.createBlankNode();
	Node thirdObject = NodeFactory.createBlankNode();
	
	epb.addTriplePath( new TriplePath( new Triple( firstObject, RDF.first.asNode(), one)));
	epb.addTriplePath( new TriplePath( new Triple( firstObject, RDF.rest.asNode(), secondObject)));
	epb.addTriplePath( new TriplePath( new Triple( secondObject, RDF.first.asNode(), two)));
	epb.addTriplePath( new TriplePath( new Triple( secondObject, RDF.rest.asNode(), thirdObject)));
	epb.addTriplePath( new TriplePath( new Triple( thirdObject, RDF.first.asNode(), three)));
	epb.addTriplePath( new TriplePath( new Triple( thirdObject, RDF.rest.asNode(), RDF.nil.asNode())));
	
	
	WhereValidator visitor = new WhereValidator( epb );
	query.getQueryPattern().visit( visitor );
	assertTrue( visitor.matching );
	                    
	assertTrue(n.isBlank());
}