@Test (timeout = 30000)
public void testParent() {

  assertEquals(new Path("/foo"), new Path("/foo/bar").getParent());
  assertEquals(new Path("foo"), new Path("foo/bar").getParent());
  assertEquals(new Path("/"), new Path("/foo").getParent());
  assertEquals(null, new Path("/").getParent());
  if (Path.WINDOWS) {
    assertEquals(new Path("c:/"), new Path("c:/foo").getParent());
  }
}