jmxInstaller,
null);
// nothing NTLM related present
{
final DefaultRemoteStorageContext drsc = new DefaultRemoteStorageContext(null);
Assert.assertFalse("No auth-proxy set", testSubject.reuseConnectionsNeeded(drsc));
}
// remote auth is NTLM
{
final DefaultRemoteStorageContext drsc = new DefaultRemoteStorageContext(null);
drsc.setRemoteAuthenticationSettings(new NtlmRemoteAuthenticationSettings("a", "b", "c", "d"));
Assert.assertTrue("NTLM target auth-proxy set", testSubject.reuseConnectionsNeeded(drsc));
}
// HTTP proxy is NTLM
{