private void assertMessageReceived(final MimeProperties expectedMimeProps) {
pollForMatchingMail(expectedMimeProps);
}
private MimeProperties pollForMatchingMail(final MimeProperties expectedMimeProps) {
MimeProperties mp = pollForMail(new TempDataFilter<MimeProperties>() {
@Override
public boolean accept(MimeProperties mp) {
String expectedReplyTo = expectedMimeProps.isReplyToSet() ? expectedMimeProps.replyTo : expectedMimeProps.from;
if (!Objects.equals(expectedMimeProps.subject, mp.subject)