### Question:
PathComponents { String getParent() { return parent; } PathComponents(String path);   }### Answer:
@Test public void getParent() { assertEquals("", components1.getParent()); assertEquals("a+", components2.getParent()); assertEquals("a.bc", components3.getParent()); }