@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); }
@Override public void handle(Object event) { super.handle(event); }
UserCreatedEventListener extends SecurityEventListener { @Override public void handle(Object event) { super.handle(event); } }
UserCreatedEventListener extends SecurityEventListener { @Override public void handle(Object event) { super.handle(event); } UserCreatedEventListener(EventService eventService,
			AuditService auditService); }
UserCreatedEventListener extends SecurityEventListener { @Override public void handle(Object event) { super.handle(event); } UserCreatedEventListener(EventService eventService,
			AuditService auditService); @Override boolean canHandle(Object event); @Override void handle(Object event); @Override void audit(SecurityEvent event); }
UserCreatedEventListener extends SecurityEventListener { @Override public void handle(Object event) { super.handle(event); } UserCreatedEventListener(EventService eventService,
			AuditService auditService); @Override boolean canHandle(Object event); @Override void handle(Object event); @Override void audit(SecurityEvent event);  }