return session;
}
public void testRejectMaxRcpt() throws MailAddressException {
SMTPSession session = setupMockedSession(3);
MaxRcptHandler handler = new MaxRcptHandler();
handler.setMaxRcpt(2);
int resp = handler.doRcpt(session,null,new MailAddress("test@test")).getResult();
assertEquals("Rejected.. To many recipients", resp, HookReturnCode.DENY);
}