@Test
public void testRecipientsRejected() throws LocalMailSystemException {
List<RecipientRejection> rejections =
new ArrayList<RecipientRejection>();
rejections.add(new RecipientRejection(ExampleAddress.JANE_AS_RECIPIENT,
permanentSendException));
rejections.add(new RecipientRejection(ExampleAddress.JOHN_AS_RECIPIENT,
transientSendException));
RecipientsWereRejectedException exception =
new RecipientsWereRejectedException(rejections);
retryPolicy.actOnRecipientsWereRejected(mail, exception);