@Test
public void toShortestURLURL() throws Exception {

	handlesResourceUrl();
	try {
		File f1 = new File("/toto");  //$NON-NLS-1$
		URL u1 = f1.toURI().toURL();
		URL u2 = Resources.getResource("org/arakhne/afc/vmutil/test.txt");  //$NON-NLS-1$
		URL u2e = new URL("resource:org/arakhne/afc/vmutil/test.txt");  //$NON-NLS-1$

		URL actual;

		actual = FileSystem.toShortestURL(u1);
		assertEquals(u1, actual);

		actual = FileSystem.toShortestURL(u2);
		assertEquals(u2e, actual);
	} finally {
		unhandlesResourceUrl();
	}
}