@Test
public void fileWithWhitespace() throws Exception {

    URL url = new URL("file:/file%20with%20whitespace");
    assertEquals(File.separator + "file with whitespace", Files.getLocalFileFromUrl(url).getPath());
}