@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 MaliciousFileDetectedEvent(IP_ADDRESS,
			USER_NAME, FILE_UPLOADED);
	listener.audit(event);
	verify(auditService).audit("MaliciousFileDetectedEventListener",
			USER_NAME, SecurityAuditVerb.UPLOADS_MALICIOUS_FILE,
			FILE_UPLOADED, predicateMap);
}