@Test
public void testParentOf() throws Throwable {

  assertEquals("/", parentOf("/a"));
  assertEquals("/", parentOf("/a/"));
  assertEquals("/a", parentOf("/a/b"));
  assertEquals("/a/b", parentOf("/a/b/c"));
}