public void testProxy() throws Exception
{
DefaultHttpClient client = new DefaultHttpClient();
UsernamePasswordCredentials credentials = new UsernamePasswordCredentials("bill", "password");
client.getCredentialsProvider().setCredentials(new AuthScope(AuthScope.ANY), credentials);
ClientExecutor executor = createAuthenticatingExecutor(client);
BaseProxy proxy = ProxyFactory.create(BaseProxy.class, generateURL(""), executor);
String val = proxy.get();
Assert.assertEquals(val, "hello");
val = proxy.getAuthorized();
Assert.assertEquals(val, "authorized");