}
@Test
public void existingSettings() {
final RemoteProxySettingsDTO configSettings = new RemoteProxySettingsDTO();
configSettings.setHttpProxySettings(new RemoteHttpProxySettingsDTO());
configSettings.getHttpProxySettings().setProxyHostname("foo");
configSettings.setHttpsProxySettings(new RemoteHttpProxySettingsDTO());
configSettings.getHttpsProxySettings().setProxyHostname("bar");
configSettings.addNonProxyHost("car1");
configuration.setRemoteProxySettings(configSettings);
final RemoteProxy underTest = createJerseyHttpProxy();