@Test
public void testAudit() throws AuditException {

	@SuppressWarnings("unchecked")
	Map<PredicateKey, String> predicateMap=(Map<PredicateKey, String>)mock(Map.class);
	doReturn(predicateMap).when(auditService).createPredicateMap();
	
	SecurityEvent event=new AuthenticationFailedEvent(IP_ADDRESS, USER_NAME);
	listener.audit(event);
	verify(auditService).audit("AuthenticationFailedEventListener", IP_ADDRESS, SecurityAuditVerb.FAILED_ATTEMPTS_TO_LOGIN_AS, USER_NAME, predicateMap);
	
}