@Test
public void checkNotification() {

	List<IdmIdentityDto> identities = this.createIdentities(5);
	
	IdmBulkActionDto bulkAction = this.findBulkAction(IdmIdentity.class, IdentityDisableBulkAction.NAME);
	Set<UUID> ids = this.getIdFromList(identities);
	bulkAction.setIdentifiers(ids);
	IdmBulkActionDto processAction = bulkActionManager.processAction(bulkAction);
	
	checkResultLrt(processAction, 5l, null, null);
	
	IdmNotificationFilter filter = new IdmNotificationFilter();
	filter.setRecipient(loginIdentity.getUsername());
	filter.setNotificationType(IdmEmailLog.class);
	List<IdmNotificationLogDto> notifications = notificationLogService.find(filter, null).getContent();
	
	assertEquals(1, notifications.size());
	
	IdmNotificationLogDto notificationLogDto = notifications.get(0);
	assertEquals(IdmEmailLog.NOTIFICATION_TYPE, notificationLogDto.getType());
	assertTrue(notificationLogDto.getMessage().getHtmlMessage().contains(bulkAction.getName()));
}