getUtil().setSession(admin);
setSenderPage(InvitationSenderPage.gotoPage());
Assert.assertTrue("No warning in footer that a message is reported as spam",
getSenderPage().getFooter().spamReports() == 1);
// View spam message.
InspectInvitationsPage inspectPage = getSenderPage().getFooter().inspectAllInvitations();
InspectInvitationsPage.OneMessage inspect =
inspectPage.getMessageWhere("Subject", "spam has invited you to join localhost");
// Prove that the memo left by spam reported is shown.
String expectedMessage = "Reported as spam with message: It's the email lottery, they have taken over "
+ "your server!";
Assert.assertTrue("The message by the spam reporter is not shown to the admin.\nExpecting:"
+ expectedMessage + "\n Got:" + inspect.getStatusAndMemo(),