@Test
public void testGetRelativePathWithDots() throws MojoExecutionException {

    JGitSourceReferencesProvider provider = new JGitSourceReferencesProvider();
    File projectBasedir = new File("/foo/../test/bar/baz");
    File repoRoot = new File("/test/foo/../bar");
    assertEquals("baz", provider.getRelativePath(projectBasedir, repoRoot));
}