// of messages from the last 6 hours, and try to get their content.
// This means that the testing account must have at least one sent message within
// that time.
Calendar cal = Calendar.getInstance();
cal.add( Calendar.HOUR, -6 );
MandrillSearchMessageParams search = new MandrillSearchMessageParams();
search.setDateFrom( cal.getTime() );
search.setDateTo( new Date() );
MandrillMessageInfo[] messages = mandrillApi.messages().search( search );
Assume.assumeNotNull( messages );
Assume.assumeTrue( messages.length > 0 );
for ( MandrillMessageInfo info : messages ) {