assertThat(config.getConnectionConfig().getRetries(), is(2));
assertThat(config.getConnectionConfig().getUrlParameters(), is("params"));
assertThat(config.getConnectionConfig().getUserAgentCustomisation(), is("ua"));
assertThat(config.getConnectionConfig().getUseTrustStore(), is(true));
UsernameAuthenticationConfig a1 = (UsernameAuthenticationConfig) config.getAuthenticationConfig();
assertThat(a1.getUsername(), is("foo"));
assertThat(a1.getPassword(), is("bar"));
assertThat(config.getProxyConfig().getHttpProxyConfig().getHostname(), is("httpHost"));
assertThat(config.getProxyConfig().getHttpProxyConfig().getPort(), is(3));
UsernameAuthenticationConfig a2 = (UsernameAuthenticationConfig) config.getProxyConfig().getHttpProxyConfig()
.getAuthenticationConfig();
assertThat(a2.getUsername(), is("foo1"));
assertThat(a2.getPassword(), is("bar1"));
assertThat(config.getProxyConfig().getHttpsProxyConfig().getHostname(), is("httpsHost"));
assertThat(config.getProxyConfig().getHttpsProxyConfig().getPort(), is(4));
NtlmAuthenticationConfig a3 = (NtlmAuthenticationConfig) config.getProxyConfig().getHttpsProxyConfig()
.getAuthenticationConfig();