@Test
public void dirnameURL() throws Exception {

	assertEquals(new URL("http://toto:titi@www.arakhne.org/path/to/"), //$NON-NLS-1$
			FileSystem.dirname(createHttpUrl()));
	assertEquals(new URL("jar:file:/home/test/j.jar!/org/arakhne/afc/vmutil/"), //$NON-NLS-1$
			FileSystem.dirname(createFileInJarUrl()));
	assertEquals(new URL("jar:file:/the path/to/file with space.toto!/org/arakhne/afc/vmutil/"), //$NON-NLS-1$
			FileSystem.dirname(createFileInJarUrlWithSpaces()));
}