@Test
public void getParentPath() {

    assertEquals("/a/b", UriUtils.getParentPath("/a/b/c"));
    assertEquals("/a", UriUtils.getParentPath("/a/b"));
    assertEquals("/", UriUtils.getParentPath("/a"));
    assertEquals(null, UriUtils.getParentPath("/"));
}