protected Settings getSettings() {
String path = getClass().getResource(".").toString().substring("file:".length());
File testSettingsFile = new File(path + "settings_with_mirror.xml");
assertTrue(testSettingsFile.exists());
SettingsBuilder settingsBuilder = new DefaultSettingsBuilderFactory().newInstance();
DefaultSettingsBuildingRequest request = new DefaultSettingsBuildingRequest();
request.setUserSettingsFile( testSettingsFile );
try {
return settingsBuilder.build( request ).getEffectiveSettings();