public String getRootPath() {
    String rootPath = this.toString();
    if (this.getPath() != null) {
      rootPath = rootPath.substring(0, rootPath.lastIndexOf(this.getPath()));
    }
    return PathUtils.normalizePath(rootPath, AlluxioURI.SEPARATOR);
  }
@Test
  public void getRootPath() {
    assertEquals("s3a://s3-bucket-name/",
        new AlluxioURI("s3a://s3-bucket-name/").getRootPath());
    assertEquals("s3a://s3-bucket-name/",
        new AlluxioURI("s3a://s3-bucket-name/folder").getRootPath());
    assertEquals("/",
        new AlluxioURI("/tmp/folder").getRootPath());
  }