}
@Test
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.getAttachment("VALID_USER", State.Transaction));
assertEquals("Error mapping", rCode, HookReturnCode.DENY);
}