@Test
public void test() throws AuditException {

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