@Test
public void testAsElement() {

	final Var v = Var.alloc("v");
	final Var x = Var.alloc("x");
	final Node one = NodeFactory.createURI( "one");
	final Node two = NodeFactory.createURI( "two");
	final Node three = NodeFactory.createLiteral( "three");
	final Node four = NodeFactory.createLiteral( "four");
	
	handler.addValueVar( v, Arrays.asList( one, two ));
	handler.addValueVar( x, Arrays.asList( three, four ));
		
	ElementData edat = new ElementData();
	edat.add( v );
	edat.add( x );
	BindingHashMap binding = new BindingHashMap();
	binding.add( v, NodeFactory.createURI( "one" ));
	binding.add( x, NodeFactory.createLiteral("three"));
	edat.add( binding );
	binding = new BindingHashMap();
	binding.add( v, NodeFactory.createURI( "two" ));
	binding.add( x, NodeFactory.createLiteral("four"));
	edat.add( binding );
	WhereValidator visitor = new WhereValidator( edat );
	handler.asElement().visit( visitor );
	assertTrue( visitor.matching );
}