@Test( expected = IndexOutOfBoundsException.class )
public void shouldFailToReturnSubpathWithEndingIndexIfStartingIndexIsEqualToOrLargerThanSize() {

    path = pathFactory.create("/mode:a/b/mode:c/../d/./mode:e/../..");
    path.subpath(path.size() + 1, path.size() + 2);
}