@Test
public void testGetSourceReferencesHeader() throws MojoExecutionException {

    JGitSourceReferencesProvider provider = new JGitSourceReferencesProvider();
    MavenProject mockProject = new MavenProject();
    ScmUrl scmUrl = new ScmUrl(properties("scm:git:foo"));
    mockProject.setFile(new File("src/test/resources/pom.xml").getAbsoluteFile());
    String sourceRef = provider.getSourceReferencesHeader(mockProject, scmUrl);
    assertTrue(sourceRef.startsWith("scm:git:foo;path=\"tycho-extras/tycho-sourceref-jgit/src/test/resources\""));
}