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

  assertTrue(new Path("/").isAbsolute());
  assertTrue(new Path("/foo").isAbsolute());
  assertFalse(new Path("foo").isAbsolute());
  assertFalse(new Path("foo/bar").isAbsolute());
  assertFalse(new Path(".").isAbsolute());
  if (Path.WINDOWS) {
    assertTrue(new Path("c:/a/b").isAbsolute());
    assertFalse(new Path("c:a/b").isAbsolute());
  }
}