}
@Test
public void testGetAttachements() {
final ImapGmailClient client = new ImapGmailClient();
final ImapGmailConnection connection = new ImapGmailConnection();
try {
connection.setLoginCredentials(conf.getGmailCredentials());
if (conf.useProxy()) {
connection.setProxy(conf.getProxyHost(), conf.getProxyPort());
connection.setProxyCredentials(conf.getProxyCredentials());
}
client.setConnection(connection);
// Send a message so we have one
GmailMessage msg = new JavaMailGmailMessage();