@Test
public void shouldAggregateVersionId() throws Exception {

    // given
    final ManifestInfoProvider provider1 = mock(ManifestInfoProvider.class);
    final ManifestInfoProvider provider2 = mock(ManifestInfoProvider.class);
    when(provider1.getManifestInfo()).thenReturn(new ManifestInfo("v1", "1234"));
    when(provider2.getManifestInfo()).thenReturn(new ManifestInfo("v2", "1234"));
    ReflectionTestUtils.setField(versionService, "manifestInfoProviders", asList(provider1, provider2));
    // when
    final Version version = versionService.version();
    // then
    assertEquals("v1-v2", version.getVersionId());
    assertEquals("1234-1234", version.getBuildId());
}