@Test
public void extensionsString() {

	assertArrayEquals(new String[] {"x", "z", "z"}, FileSystem.extensions("http://toto:titi@www.arakhne.org/path/to/file.x.z.z?toto#frag"));  //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	assertArrayEquals(new String[] {"x", "z", "z"}, FileSystem.extensions("jar:file:/home/test/j.jar!/org/arakhne/afc/vmutil/file.x.z.z"));  //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	assertArrayEquals(new String[] {"x", "z", "z"}, FileSystem.extensions("jar:jar:file:/home/test/j.jar!/inner/myjar.jar!/org/arakhne/afc/vmutil/file.x.z.z"));  //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	assertArrayEquals(new String[] {"x", "z", "z"}, FileSystem.extensions("jar:jar:file:/home/test/j.jar!/inner/myjar.jar!/org/arakhne/afc/vmutil/file.x.z.z"));  //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	assertArrayEquals(new String[] {"x", "z", "z"}, FileSystem.extensions("jar:file:/the path/to/file with space.toto!/org/arakhne/afc/vmutil/file.x.z.z"));  //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	assertArrayEquals(new String[] {"b", "c"}, FileSystem.extensions("file:///a.b.c/"));   //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	assertArrayEquals(new String[] {"b", "c"}, FileSystem.extensions("file:a.b.c"));   //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	assertArrayEquals(new String[] {"b", "c"}, FileSystem.extensions("a.b.c"));   //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	assertArrayEquals(new String[0], FileSystem.extensions("file://"));   //$NON-NLS-1$
	assertArrayEquals(new String[] {"dae"}, FileSystem.extensions("D:\\vivus_test\\export dae\\yup\\terrain_physx.dae"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertArrayEquals(new String[] {"dae"}, FileSystem.extensions("file:D:\\vivus_test\\export dae\\yup\\terrain_physx.dae"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertArrayEquals(new String[] {"dae"}, FileSystem.extensions("file:\\D:\\vivus_test\\export dae\\yup\\terrain_physx.dae"));   //$NON-NLS-1$ //$NON-NLS-2$
}