public CaseInsensitiveString getDirectParentName() {
        String stringPath = path();
        if (stringPath == null) {
            return null;
        }
        int index = stringPath.lastIndexOf(DELIMITER);
        return index == -1 ? path : new CaseInsensitiveString(stringPath.substring(index + 1));
    }
@Test
    public void shouldUnderstandDirectParentName() {
        PathFromAncestor path = new PathFromAncestor(new CaseInsensitiveString("grand-parent/parent/child"));
        assertThat(path.getDirectParentName(), is(new CaseInsensitiveString("child")));
    }