@Test
public void testGetRelativePathNoCommonBasedir() throws MojoExecutionException {

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