@Test
public void hasExtensionURL() throws MalformedURLException {

	assertTrue(FileSystem.hasExtension(createHttpUrl(), ".z"));  //$NON-NLS-1$
	assertTrue(FileSystem.hasExtension(createHttpUrl(), "z"));  //$NON-NLS-1$
	assertFalse(FileSystem.hasExtension(createHttpUrl(), ".c"));  //$NON-NLS-1$
	assertTrue(FileSystem.hasExtension(createFileInJarUrl(), ".z"));  //$NON-NLS-1$
	assertTrue(FileSystem.hasExtension(createFileInJarUrl(), "z"));  //$NON-NLS-1$
	assertFalse(FileSystem.hasExtension(createFileInJarUrl(), ".c"));  //$NON-NLS-1$
	assertTrue(FileSystem.hasExtension(createFileUrlWithSpacesHardCoded(), ".toto"));  //$NON-NLS-1$
	assertTrue(FileSystem.hasExtension(createFileUrlWithSpacesHardCoded(), "toto"));  //$NON-NLS-1$
	assertFalse(FileSystem.hasExtension(createFileUrlWithSpacesHardCoded(), ".zip"));  //$NON-NLS-1$
	assertTrue(FileSystem.hasExtension(createFileInJarUrlWithSpaces(), ".z"));  //$NON-NLS-1$
	assertTrue(FileSystem.hasExtension(createFileInJarUrlWithSpaces(), "z"));  //$NON-NLS-1$
	assertFalse(FileSystem.hasExtension(createFileInJarUrlWithSpaces(), ".c"));  //$NON-NLS-1$
	assertTrue(FileSystem.hasExtension(new URL("file:///a.b.c/"), ".c"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertTrue(FileSystem.hasExtension(new URL("file:///a.b.c/"), "c"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension(new URL("file:///a.b.c/"), ".zip"));   //$NON-NLS-1$ //$NON-NLS-2$
	assertFalse(FileSystem.hasExtension(new URL("file://"), ".c"));   //$NON-NLS-1$ //$NON-NLS-2$
}