@Test
public void makeCanonicalURL() throws MalformedURLException {

	assertEquals(
			createHttpUrl(), 
			FileSystem.makeCanonicalURL(createHttpUrl()));
	assertEquals(
			createFileInJarUrl(), 
			FileSystem.makeCanonicalURL(createFileInJarUrl()));
	assertEquals(
			new URL("file:/a/b/c/d/e"),  //$NON-NLS-1$
			FileSystem.makeCanonicalURL(new URL("file:/a/b/./c/./d/e")));  //$NON-NLS-1$
	assertEquals(
			new URL("file:/a/d/e"),  //$NON-NLS-1$
			FileSystem.makeCanonicalURL(new URL("file:/a/b/../c/../d/e")));  //$NON-NLS-1$
	assertEquals(
			new URL("file:/a/b/d/e"),  //$NON-NLS-1$
			FileSystem.makeCanonicalURL(new URL("file:/a/b/./c/../d/e")));  //$NON-NLS-1$
	assertEquals(
			new URL("file:../a/b/c/d/e"),  //$NON-NLS-1$
			FileSystem.makeCanonicalURL(new URL("file:../a/b/./c/./d/e")));  //$NON-NLS-1$
	assertEquals(
			new URL("file:../a/c/d/e"),  //$NON-NLS-1$
			FileSystem.makeCanonicalURL(new URL("file:../a/b/../c/./d/e")));  //$NON-NLS-1$
}