@Override
    public Boolean delete(Alarm alarm, User user) {
        TenantId tenantId = alarm.getTenantId();
        logEntityActionService.logEntityAction(tenantId, alarm.getOriginator(), alarm, alarm.getCustomerId(),
                ActionType.ALARM_DELETE, user);
        return alarmSubscriptionService.deleteAlarm(tenantId, alarm.getId());
    }
@Test
    public void testDelete() {
        service.delete(new Alarm(), new User());

        verify(logEntityActionService, times(1)).logEntityAction(any(), any(), any(), any(), eq(ActionType.ALARM_DELETE), any());
        verify(alarmSubscriptionService, times(1)).deleteAlarm(any(), any());
    }