@Test
public void testRemoveLeadingSeparator() {

    assert PathUtils.removeLeadingSeparator("/home/", "/").equals("home/");
    assert PathUtils.removeLeadingSeparator("/home/maxence", "/").equals("home/maxence");
    assert PathUtils.removeLeadingSeparator("home/", "/").equals("home/");
    assert PathUtils.removeLeadingSeparator("/home/", "\\").equals("/home/");
    assert PathUtils.removeLeadingSeparator("/", "/").equals("");
    assert PathUtils.removeLeadingSeparator("C:\\home\\", "\\").equals("C:\\home\\");
    assert PathUtils.removeLeadingSeparator("C:\\home\\", "/").equals("C:\\home\\");
    assert PathUtils.removeLeadingSeparator("--home--", "--").equals("home--");
    assert PathUtils.removeLeadingSeparator("--home--maxence", "--").equals("home--maxence");
    assert PathUtils.removeLeadingSeparator("home--", "--").equals("home--");
    assert PathUtils.removeLeadingSeparator("--home--", "/").equals("--home--");
    assert PathUtils.removeLeadingSeparator("--", "--").equals("");
}