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();
assertThat(a3.getUsername(), is("foo2"));
assertThat(a3.getPassword(), is("bar2"));
assertThat(a3.getNtlmHost(), is("ntlmH"));
assertThat(a3.getNtlmDomain(), is("ntlmD"));
assertThat(config.getProxyConfig().getNonProxyHosts(), is(new String[]{"h1", "h2"}));
}