public PathSpec getParent()
  {
    if (_path.size() <= 1)
    {
      return emptyPath();
    }
    else
    {
      return new PathSpec(_path.subList(0, _path.size() - 1));
    }
  }
@Test(dataProvider = "pathSpecsWithParent")
  public void testGetParent(PathSpec testPathSpec, PathSpec expectedParent)
  {
    Assert.assertEquals(testPathSpec.getParent(), expectedParent);
  }