@Test
public void testGetParentPath() {

  final Object[][] testParameters = new Object[][] {{"/tester", "/"}, {"/Users/tester", "/Users"},
      {"/Users/admin/systems", "/Users/admin"}};
  assertNull(FilepathUtils.getParentPath(null));
  assertNull(FilepathUtils.getParentPath(""));
  assertNull(FilepathUtils.getParentPath("/"));
  assertNull(FilepathUtils.getParentPath("  "));
  for (final Object[] testParameter : testParameters) {
    String expected = (String) testParameter[1];
    String path = (String) testParameter[0];
    assertEquals(expected, FilepathUtils.getParentPath(path));
  }
}