assertNull(this._newsletterManager.getContentReport("ART180"));
this._newsletterManager.sendNewsletter();
this.waitForSentNewsletter();
NewsletterContentReportVO contentReport1 = this._newsletterManager.getContentReport("ART1");
assertNotNull(contentReport1);
assertEquals(0, contentReport1.getRecipients().size());
NewsletterContentReportVO contentReport2 = this._newsletterManager.getContentReport("ART102");
assertNotNull(contentReport2);
assertEquals(0, contentReport2.getRecipients().size());
NewsletterContentReportVO contentReport3 = this._newsletterManager.getContentReport("ART180");
assertEquals("ART180", contentReport3.getContentId());
assertTrue(contentReport3.getSendDate().compareTo(new Date())<0);
assertEquals("ART180", contentReport3.getContentId());
assertEquals("Oggetto della mail", contentReport3.getSubject());
String textBody = contentReport3.getTextBody();
assertFalse(textBody.contains("Header text"));
assertFalse(textBody.contains("Footer text"));
String htmlBody = contentReport3.getHtmlBody();
assertFalse(htmlBody.contains("Header html"));
assertFalse(htmlBody.contains("Footer html"));
assertEquals(2, contentReport3.getRecipients().size());
assertEquals(email, contentReport3.getRecipients().get("editorCoach_temp"));
assertEquals(email, contentReport3.getRecipients().get("editorCustomers_temp"));
} catch (Throwable t) {
throw t;
} finally {
this._helper.deleteUser("editorCoach_temp");
this._helper.deleteUser("editorCustomers_temp");