public static String getPathWithoutScheme(Path path) {
    return path.toUri().getPath();
  }
@Test
  public void testGetPathWithoutSchema() {
    final Path path = new Path("/foo/bar/baz");

    final String output = HadoopUtils.getPathWithoutScheme(path);
    assertEquals("/foo/bar/baz", output);
  }