@Test
public void makeLiteralObjectTest() throws MalformedURLException
{

	Node n = Converters.makeLiteral( 5 );
	assertEquals( "5", n.getLiteralLexicalForm() );
	assertEquals( Integer.valueOf(5), n.getLiteralValue());
	assertEquals( "\"5\"^^http://www.w3.org/2001/XMLSchema#int", n.toString( null, true ));
	n = Converters.makeLiteral( "Hello" );
	assertEquals( "Hello", n.getLiteralLexicalForm() );
	assertEquals( "Hello", n.getLiteralValue());
	assertEquals( "\"Hello\"", n.toString( null, true ));
	
	URL url = new URL( "http://example.com");
	n = Converters.makeLiteral( url);
	assertEquals( "http://example.com", n.getLiteralLexicalForm() );
	assertEquals( url, n.getLiteralValue());
	assertEquals( "\"http://example.com\"^^http://www.w3.org/2001/XMLSchema#anyURI", n.toString(null, true));
	
	UUID uuid = UUID.randomUUID();
	try {
		n = Converters.makeLiteral( uuid );
		fail( "Should throw exception");
	}
	catch (IllegalArgumentException expected) {
		// do nothing
	}
	
	TypeMapper.getInstance().registerDatatype(new UuidDataType());
	try {
		n = Converters.makeLiteral( uuid );
		assertEquals( uuid.toString(), n.getLiteralLexicalForm() );
		assertEquals( uuid, n.getLiteralValue());
		String value = String.format( "\"%s\"^^java:java.util.UUID", uuid);
		assertEquals( value, n.toString(null, true));
	}
	catch (IllegalArgumentException expected) {
		fail( "Unexpected IllegalArgumentException");
	}
	
	
}