@Test
public void testMirrors() {

    MavenRepositoryMock.setCustomSettingsFileName("settings_with_mirror.xml");
    final MavenRepository repo = new MavenRepositoryMock(Aether.getAether());
    final Collection<RemoteRepository> remoteRepos = repo.getRemoteRepositoriesForRequest();
    assertEquals(2, remoteRepos.size());
    for (final RemoteRepository remoteRepo : remoteRepos) {
        assertTrue(remoteRepo.getId().equals("qa") ||
                   remoteRepo.getId().equals("foo"));
    }
}