### Question:
NotificationManager { @Transactional(propagation = Propagation.REQUIRED) public void notifyLongPausedRuns(final List<PipelineRun> pausedRuns) { final List<PipelineRun> longPausedRuns = createNotificationsForLongPausedRuns(pausedRuns, NotificationType.LONG_PAUSED); if (CollectionUtils.isEmpty(longPausedRuns)) { return; } final List<Long> runIds = longPausedRuns.stream() .map(PipelineRun::getId) .collect(Collectors.toList()); monitoringNotificationDao.updateNotificationTimestamp(runIds, NotificationType.LONG_PAUSED); }  @Transactional(propagation = Propagation.REQUIRED) void notifyLongRunningTask(PipelineRun run, Long duration, NotificationSettings settings); @Transactional(propagation = Propagation.REQUIRED) void notifyIssue(Issue issue, AbstractSecuredEntity entity, String htmlText); @Transactional(propagation = Propagation.REQUIRED) void notifyIssueComment(IssueComment comment, Issue issue, String htmlText); @Transactional(propagation = Propagation.REQUIRED) void notifyRunStatusChanged(PipelineRun pipelineRun); @Transactional(propagation = Propagation.REQUIRED) void notifyIdleRuns(List<Pair<PipelineRun, Double>> pipelineCpuRatePairs,
                               NotificationType notificationType); @Transactional(propagation = Propagation.REQUIRED) void notifyHighResourceConsumingRuns(
            final List<Pair<PipelineRun, Map<ELKUsageMetric, Double>>> pipelinesMetrics,
            final NotificationType notificationType); @Transactional(propagation = Propagation.REQUIRED) void notifyStuckInStatusRuns(final List<PipelineRun> runs); @Transactional(propagation = Propagation.REQUIRED) void notifyLongPausedRuns(final List<PipelineRun> pausedRuns); @Transactional(propagation = Propagation.REQUIRED) List<PipelineRun> notifyLongPausedRunsBeforeStop(final List<PipelineRun> pausedRuns); @Transactional(propagation = Propagation.REQUIRED) NotificationMessage createNotification(final NotificationMessageVO messageVO); @Transactional(propagation = Propagation.REQUIRED) void removeNotificationTimestamps(final Long runId); @Transactional(propagation = Propagation.REQUIRED) void removeNotificationTimestampsByPipelineId(final Long id); Optional<NotificationTimestamp> loadLastNotificationTimestamp(final Long runId,
                                                                         final NotificationType type);  }### Answer:
@Test public void shouldNotCreateNotificationForLongPausedRunsIfNotTimeout() { final PipelineRun pausedRun = buildPausedRun(DateUtils.nowUTC().plusSeconds(LONG_PAUSED_SECONDS)); notificationManager.notifyLongPausedRuns(Collections.singletonList(pausedRun)); final List<NotificationMessage> messages = monitoringNotificationDao.loadAllNotifications(); Assert.assertEquals(0, messages.size()); }