@Test
public void removeExtensionURL() throws MalformedURLException {

	assertEquals(new URL("http://toto:titi@www.arakhne.org/path/to/file.x.z?toto#frag"), FileSystem.removeExtension(createHttpUrl()));  //$NON-NLS-1$
	assertEquals(new URL("jar:file:/home/test/j.jar!/org/arakhne/afc/vmutil/file.x.z"), FileSystem.removeExtension(createFileInJarUrl()));  //$NON-NLS-1$
	assertEquals(new URL("file:/the%20path/to/file%20with%20space"), FileSystem.removeExtension(createFileUrlWithSpacesHardCoded()));  //$NON-NLS-1$
	assertEquals(new URL("jar:file:/the path/to/file with space.toto!/org/arakhne/afc/vmutil/file.x.z"), FileSystem.removeExtension(createFileInJarUrlWithSpaces()));  //$NON-NLS-1$
	assertEquals(new URL("file:///a.b"), FileSystem.removeExtension(new URL("file:///a.b.c/")));   //$NON-NLS-1$ //$NON-NLS-2$
	assertEquals(new URL("file", "", ""), FileSystem.removeExtension(new URL("file://")));   //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}