@Test
public void testParseLocalURI() throws Exception {

  assertEquals("file:///tmp/hive-user", PathUtils.
    parseLocalURI("/tmp/hive-user"));
  assertEquals("file:///tmp/hive-user", PathUtils.
    parseLocalURI("file:/tmp/hive-user"));
  assertEquals("file:///tmp/hive-user", PathUtils.
    parseLocalURI("file:///tmp/hive-user"));
  assertEquals("file://localhost:9999/tmp/hive-user",
      PathUtils.parseLocalURI("file://localhost:9999/tmp/hive-user"));
}