}
@Test
public void testProxySettings() {
when(connection.getProxyInfos()).thenReturn(ImmutableMap.of(HTTP, proxyInfo));
when(connection.getBaseUrl()).thenReturn(new BaseUrl(HTTP, "otherhost", 8080, "path"));
when(connection.getSslCertificateValidation()).thenReturn(ValidationLevel.STRICT);
when(connection.getSslCertificateHostnameValidation()).thenReturn(ValidationLevel.LAX);
when(proxyInfo.getProxyHost()).thenReturn("somehost");
when(proxyInfo.getProxyPort()).thenReturn(8888);