@Test
public void createFromURI() {

	URI uri = URI.create("http://johndoe:secret@example.com:81/page?2#hash");
	IRI iri = iriFactory.create(uri);		
	assertEquals("http", iri.getScheme());
	assertEquals("johndoe:secret", iri.getRawUserinfo());
	assertEquals("example.com", iri.getRawHost());
	assertEquals(81, iri.getPort());
	assertEquals("/page", iri.getRawPath());
	assertEquals("2", iri.getRawQuery());
	assertEquals("hash", iri.getRawFragment());
}