try {
TestConfigurer conf = TestConfigurer.getInstance();
final RssGmailClient client = new RssGmailClient();
final GmailConnection connection = new HttpGmailConnection();
connection.setLoginCredentials(conf.getGmailCredentials());
if (conf.useProxy()) {
((ProxyAware) connection).setProxy(conf.getProxyHost(),
conf.getProxyPort());
((ProxyAware) connection).setProxyCredentials(
conf.getProxyCredentials());
}