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

  assertEquals("", new Path("/").getName());
  assertEquals("foo", new Path("foo").getName());
  assertEquals("foo", new Path("/foo").getName());
  assertEquals("foo", new Path("/foo/").getName());
  assertEquals("bar", new Path("/foo/bar").getName());
  assertEquals("bar", new Path("hdfs://host/foo/bar").getName());
}