@Test
public void makeNodeTest() {

	PrefixMapping pMap = PrefixMapping.Factory.create();
	pMap.setNsPrefixes(PrefixMapping.Standard );
	
	Node n = Converters.makeNode(null, pMap);
	assertEquals(Node.ANY, n);
	n = Converters.makeNode(RDF.type, pMap);
	assertEquals(RDF.type.asNode(), n);
	Node n2 = NodeFactory.createBlankNode();
	n = Converters.makeNode(n2, pMap);
	assertEquals(n2, n);
	pMap.setNsPrefix("demo", "http://example.com/");
	n = Converters.makeNode("demo:type", pMap);
	assertEquals(NodeFactory.createURI("http://example.com/type"), n);
	n = Converters.makeNode("<one>", pMap);
	assertEquals(NodeFactory.createURI("one"), n);
	UUID uuid = UUID.randomUUID();
	try {
		Converters.makeNode( uuid, pMap);
		fail( "Should have thrown IllegalArgumentException");
	}
	catch (IllegalArgumentException expected) {
		// do nothing
	}
	
	TypeMapper.getInstance().registerDatatype(new UuidDataType());		
	n = Converters.makeNode( uuid, pMap );
	LiteralLabel ll = LiteralLabelFactory.createTypedLiteral(uuid);
	assertEquals(NodeFactory.createLiteral(ll), n);
	
	
	n = Converters.makeNode( NodeFactory.createVariable("foo"), pMap);
	assertTrue( n.isVariable());
	assertEquals( "foo", n.getName());
	assertTrue( n instanceof Var );
	n = Converters.makeNode( "'text'@en", pMap);
	assertEquals( "text", n.getLiteralLexicalForm());
	assertEquals( "en", n.getLiteralLanguage());
}