@Test
public void testRejectLoopbackMX() throws ParseException, MailAddressException {
Collection bNetworks = new ArrayList();
bNetworks.add("127.0.0.1");
DNSService dns = setupMockedDNSServer();
MailAddress mailAddress = new MailAddress("test@" + INVALID_HOST);
SMTPSession session = setupMockedSMTPSession(mailAddress);
ValidRcptMX handler = new ValidRcptMX();
handler.setDNSService(dns);