@Test
public void shouldBuildVersionInfoFromGitProperties() {

    // given
    VersionInfo versionInfo = versionInfo(
            versionInfoProperties("42.0.1-RELEASE", "ignored", "http://example.org/test/{version}"),
            gitProperties("abc4711"));
    // then
    assertThat(versionInfo.commitId, is("abc4711"));
    assertThat(versionInfo.version, is("42.0.1-RELEASE"));
    assertThat(versionInfo.url, is("http://example.org/test/42.0.1-RELEASE"));
}