@Test
public void testHandle() throws AuditException {

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