@Test
public void testRemoveLeadingFragments() {

    assert "home/maxence/".equals(PathUtils.removeLeadingFragments("/home/maxence/", "/", 0));
    assert "maxence/".equals(PathUtils.removeLeadingFragments("/home/maxence/", "/", 1));
    assert "".equals(PathUtils.removeLeadingFragments("/home/maxence/", "/", 2));
    assert "".equals(PathUtils.removeLeadingFragments("/home/maxence/", "/", 3));
    assert "".equals(PathUtils.removeLeadingFragments("/home/maxence/", "\\", 1));
}