@Test(expected = MojoExecutionException.class)
public void testGetRelativePathNoCommonBasedir() throws MojoExecutionException {

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