settings.addServer( server );
Proxy proxy = new Proxy();
proxy.setPassword( "proxy_password" );
settings.addProxy( proxy );
ReleaseEnvironment releaseEnvironment = new DefaultReleaseEnvironment();
releaseEnvironment.setSettings( settings );
InvokerMavenExecutor executorSpy = spy( executor );
SettingsXpp3Writer settingsWriter = mock( SettingsXpp3Writer.class );
ArgumentCaptor<Settings> encryptedSettings = ArgumentCaptor.forClass( Settings.class );