   @Test
   public void testMirrorCentralWithoutProfiles() throws Exception
   {

      SettingsBuilder settingsBuilder = new DefaultSettingsBuilderFactory().newInstance();
      SettingsBuildingRequest settingsRequest = new DefaultSettingsBuildingRequest();
      settingsRequest.setUserSettingsFile(new File("src/test/resources/profiles/mirror-settings.xml"));
      Settings settings = settingsBuilder.build(settingsRequest).getEffectiveSettings();
      MavenContainer container = new MavenContainer();
      List<RemoteRepository> remoteRepositories = MavenRepositories.getRemoteRepositories(container, settings);
      Assert.assertThat(remoteRepositories.size(), equalTo(1));
      Assert.assertThat(remoteRepositories.get(0).getId(), equalTo("central"));
      Assert.assertThat(remoteRepositories.get(0).getUrl(),
               equalTo("http://repo.cloudbees.com/content/repositories/central/"));
   }