null
);
getLog().debug("+++ testNotificationDeliver, stop " + TEST_MAIL + "");
jsr77MEJB.invoke(lMail, "stop", new Object[]{}, new String[]{});
getLog().debug("+++ testNotificationDeliver, start " + TEST_MAIL + "");
jsr77MEJB.invoke(lMail, "start", new Object[]{}, new String[]{});
// Wait 5 seconds to ensure that the notifications are delivered
Thread.sleep(5000);
if (lLocalListener.getNumberOfNotifications() < 2)
{
fail("Not enough notifications received: " + lLocalListener.getNumberOfNotifications());