@Test
public void getParentURLURL() throws Exception {

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