@Test
public void parseUrl() throws MalformedURLException {

    Handler.register();
    Assert.assertEquals(new URL("file:/path/file.ext"), SparkUtil.parseUrl("/path/file.ext"));
    Assert.assertEquals(new URL("file:/path/file.ext"), SparkUtil.parseUrl("file:/path/file.ext"));
    Assert.assertEquals(new URL("file:/path/file.ext"), SparkUtil.parseUrl("local:/path/file.ext"));
    Assert.assertEquals(new URL("hadoop:hdfs://localhost:8020/path/file.ext"), FileSystemUtil.parseUrl("hdfs://localhost:8020/path/file.ext", null));
}