@Test
public void testSPFpermErrorRejectDisabled() throws Exception {
MailAddress sender = new MailAddress("test@spf4.james.apache.org");
MailAddress rcpt = new MailAddress("test@localhost");
setupMockedSMTPSession("192.168.100.1", "spf4.james.apache.org");
SPFHandler spf = new SPFHandler();
spf.setDNSService(mockedDnsService);
spf.setBlockPermError(false);
assertEquals("declined", HookReturnCode.DECLINED, spf.doMail(mockedSMTPSession, sender).getResult());
assertEquals("declined", HookReturnCode.DECLINED, spf.doRcpt(mockedSMTPSession, sender, rcpt).getResult());
}