### Question:
NetworkProxy implements Serializable { public void setUseNtlm( boolean useNtlm ) { this.useNtlm = useNtlm; } NetworkProxy();  NetworkProxy(String id, String protocol, String host, int port, String username, char[] password ); String getId(); void setId( String id ); String getProtocol(); void setProtocol( String protocol ); String getHost(); void setHost( String host ); int getPort(); void setPort( int port ); String getUsername(); void setUsername( String username ); char[] getPassword(); void setPassword(char[] password ); boolean isUseNtlm(); void setUseNtlm( boolean useNtlm ); @Override boolean equals( Object o ); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void setUseNtlm() { NetworkProxy proxy = new NetworkProxy(); assertFalse(proxy.isUseNtlm()); proxy.setUseNtlm(true); assertTrue(proxy.isUseNtlm()); proxy = new NetworkProxy("test-proxy", "http", "test.apache.org", 80, "testuser", "xxxx".toCharArray()); assertFalse(proxy.isUseNtlm()); proxy.setUseNtlm(true); assertTrue(proxy.isUseNtlm()); }