public static BuildInfo getBuildInfo() {
        if (Overrides.isEnabled()) {
            // never use cache when override is enabled -> we need to re-parse everything
            Overrides overrides = Overrides.fromProperties();
            return getBuildInfoInternalVersion(overrides);
        }

        return BUILD_INFO_CACHE;
    }
@Test
    public void testCommitId() {
        BuildInfo buildInfo = BuildInfoProvider.getBuildInfo();
        String revision = buildInfo.getRevision();
        String commitId = buildInfo.getCommitId();
        assertTrue(commitId.startsWith(revision));
    }