### Question:
PathComponents { String[] getAll() { return pathComponents; } PathComponents(String path);   }### Answer:
@Test public void getAll() { assertArrayEquals(new String[]{"a"}, components1.getAll()); assertArrayEquals(new String[]{"a+", "bcd"}, components2.getAll()); assertArrayEquals(new String[]{"a", "bc", "defg"}, components3.getAll()); }