PropertiesBasedChainedProxy extends ChainedProxyAdapter { @Override public NtlmHandler getNtlmHandler() { if (ntlm && ntlmHandler == null) { ntlmHandler = new NtlmHandlerImpl(new JcifsNtlmProvider(user, pass, domain)); } return ntlmHandler; } PropertiesBasedChainedProxy(String forName); String name(); boolean applies(HttpRequest request); void url(String url); void filter(String filter); void ntlm(); void basic(); void user(String user); void pass(String pass); void domain(String domain); @Override InetSocketAddress getChainedProxyAddress(); @Override TransportProtocol getTransportProtocol(); @Override boolean requiresEncryption(); @Override SSLEngine newSslEngine(); @Override void filterRequest(HttpObject httpObject); @Override void connectionSucceeded(); @Override void connectionFailed(Throwable cause); @Override NtlmHandler getNtlmHandler(); String toString();  }
@Test public void should_readAllNtlmProps() { assertThat(proxy.getNtlmHandler(), is(notNullValue())); }