@Test
public void testMakeNode() {

	Node n = builder.makeNode(null);
	assertEquals(Node.ANY, n);
	n = builder.makeNode(RDF.type);
	assertEquals(RDF.type.asNode(), n);
	Node n2 = NodeFactory.createBlankNode();
	n = builder.makeNode(n2);
	assertEquals(n2, n);
	builder.addPrefix("demo", "http://example.com/");
	n = builder.makeNode("demo:type");
	assertEquals(NodeFactory.createURI("http://example.com/type"), n);
	n = builder.makeNode("<one>");
	assertEquals(NodeFactory.createURI("one"), n);
	try {
		n = builder.makeNode(builder);
		fail( "Should have thrown IllegalArgumentException");
	} catch (IllegalArgumentException expected)
	{
		// do nothing
	}
	
	n = builder.makeNode( Integer.valueOf( 5 ));
	assertTrue( n.isLiteral() );
	LiteralLabel ll = LiteralLabelFactory.createTypedLiteral( Integer.valueOf(5));
	assertEquals( NodeFactory.createLiteral(ll), n );
	
	n = builder.makeNode( NodeFactory.createVariable("foo"));
	assertTrue( n.isVariable());
	assertEquals( "foo", n.getName());
	assertTrue( n instanceof Var );
	n = builder.makeNode( "'text'@en");
	assertTrue( n.isLiteral() );
	assertEquals( "text", n.getLiteralLexicalForm());
	assertEquals( "en", n.getLiteralLanguage());
}