@Test
public void hasExtensionString() {

	assertTrue(FileSystem.hasExtension("http://toto:titi@www.arakhne.org/path/to/file.x.z.z?toto#frag", ".z"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("http://toto:titi@www.arakhne.org/path/to/file.x.z.z?toto#frag", "z"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("http://toto:titi@www.arakhne.org/path/to/file.x.z.z?toto#frag", ".c"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("jar:file:/home/test/j.jar!/org/arakhne/afc/vmutil/file.x.z.z", ".z"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("jar:file:/home/test/j.jar!/org/arakhne/afc/vmutil/file.x.z.z", "z"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("jar:file:/home/test/j.jar!/org/arakhne/afc/vmutil/file.x.z.z", ".c"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("jar:jar:file:/home/test/j.jar!/inner/myjar.jar!/org/arakhne/afc/vmutil/file.x.z.z", ".z"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("jar:jar:file:/home/test/j.jar!/inner/myjar.jar!/org/arakhne/afc/vmutil/file.x.z.z", "z"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("jar:jar:file:/home/test/j.jar!/inner/myjar.jar!/org/arakhne/afc/vmutil/file.x.z.z", ".c"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("jar:jar:file:/home/test/j.jar!/inner/myjar.jar!/org/arakhne/afc/vmutil/file.x.z.z", ".z"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("jar:jar:file:/home/test/j.jar!/inner/myjar.jar!/org/arakhne/afc/vmutil/file.x.z.z", "z"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("jar:jar:file:/home/test/j.jar!/inner/myjar.jar!/org/arakhne/afc/vmutil/file.x.z.z", ".c"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("jar:file:/the path/to/file with space.toto!/org/arakhne/afc/vmutil/file.x.z.z", ".z"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("jar:file:/the path/to/file with space.toto!/org/arakhne/afc/vmutil/file.x.z.z", "z"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("jar:file:/the path/to/file with space.toto!/org/arakhne/afc/vmutil/file.x.z.z", ".c"));  //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("file:///a.b.c/", ".c"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("file:///a.b.c/", "c"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("file:///a.b.c/", ".z"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("file:a.b.c", ".c"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("file:a.b.c", "c"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("file:a.b.c", ".z"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("a.b.c", ".c"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("a.b.c", "c"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("a.b.c", ".z"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("file://", ".z"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("D:\\vivus_test\\export dae\\yup\\terrain_physx.dae", ".dae"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("D:\\vivus_test\\export dae\\yup\\terrain_physx.dae", "dae"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("D:\\vivus_test\\export dae\\yup\\terrain_physx.dae", ".zip"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("file:D:\\vivus_test\\export dae\\yup\\terrain_physx.dae", ".dae"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("file:D:\\vivus_test\\export dae\\yup\\terrain_physx.dae", "dae"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("file:D:\\vivus_test\\export dae\\yup\\terrain_physx.dae", ".zip"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("file:\\D:\\vivus_test\\export dae\\yup\\terrain_physx.dae", ".dae"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension("file:\\D:\\vivus_test\\export dae\\yup\\terrain_physx.dae", "dae"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension("file:\\D:\\vivus_test\\export dae\\yup\\terrain_physx.dae", ".zip"));   //$NON-NLS-1$ //$NON-NLS-2$
}