}
public void testAuthGet() throws Exception {
Credentials creds = new UsernamePasswordCredentials("user", "password");
SimpleProxy proxy = new SimpleProxy();
proxy.requireCredentials(creds);
HttpClient client = new HttpClient();
HostConfiguration hc = new HostConfiguration();
hc.setHost(TARGET_HOST, TARGET_PORT, Protocol.getProtocol("http"));
hc.setProxy(proxy.getLocalAddress(), proxy.getLocalPort());