assertEquals("Not rejected",rCode,HookReturnCode.DECLINED);
}
public void testHasErrorMapping() throws Exception {
MailAddress mailAddress = new MailAddress(USER2 + "@localhost");
SMTPSession session = setupMockedSMTPSession(setupMockedSMTPConfiguration(),mailAddress,false);
int rCode = handler.doRcpt(session, null,mailAddress).getResult();
assertNull("Valid Error mapping",session.getState().get("VALID_USER"));
assertEquals("Error mapping",rCode, HookReturnCode.DENY);
}