@ExtendWith(RepositoryManagementTestExecutionListener.class)
@Test
public void testCanGetRepositoriesWithStorageAndLayout(@RawRepository(repositoryId = REPOSITORY_RELEASES_1)
                                                       Repository releases1,
                                                       @RawRepository(repositoryId = REPOSITORY_RELEASES_2) 
                                                       Repository releases2,
                                                       @Group(repositories = REPOSITORY_RELEASES_1)
                                                       @RawRepository(repositoryId = REPOSITORY_GROUP_1) 
                                                       Repository releasesGroup1,
                                                       @Group(repositories = REPOSITORY_RELEASES_1)
                                                       @RawRepository(repositoryId = REPOSITORY_GROUP_2) 
                                                       Repository releasesGroup2)
{

    List<Repository> repositories = configurationManagementService.getConfiguration()
                                                                  .getRepositoriesWithLayout(STORAGE0,
                                                                                             RawArtifactCoordinates.LAYOUT_NAME);
    assertThat(repositories).isNotEmpty();
    repositories.forEach(repository -> {
        assertThat(repository.getLayout()).isEqualTo(RawArtifactCoordinates.LAYOUT_NAME);
        assertThat(repository.getStorage().getId()).isEqualTo(STORAGE0);
    });
}