@Test
public void testGetParent() {

	Path p = new Path("/my/fancy/path");
	assertEquals("/my/fancy", p.getParent().toUri().getPath());
	p = new Path("/my/other/fancy/path/");
	assertEquals("/my/other/fancy", p.getParent().toUri().getPath());
	p = new Path("hdfs:///my/path");
	assertEquals("/my", p.getParent().toUri().getPath());
	p = new Path("hdfs:///myPath/");
	assertEquals("/", p.getParent().toUri().getPath());
	p = new Path("/");
	assertNull(p.getParent());
	p = new Path("C:/my/windows/path");
	assertEquals("/C:/my/windows", p.getParent().toUri().getPath());
}