         }
     }
     
-    private func scheduleNotificationForNextReviewCount(resourceRepository: ResourceRepositoryReader) throws -> Bool {
+    private func scheduleNotificationForNextReviewCount(resourceRepository: ResourceRepositoryReader, deliveredNotification notification: UNNotification) throws -> Bool {
         guard try resourceRepository.hasReviewTimeline() else {
             return false
         }

        scheduleNotification(content: content, identifier: .text, at: date)
    }
    
    private func scheduleNotification(content: UNNotificationContent, identifier: NotificationManagerIdentifier, at date: Date) {
        let dateComponents = Calendar.current.dateComponents([.era, .year, .month, .day, .hour, .minute, .second], from: date)
        let trigger = UNCalendarNotificationTrigger(dateMatching: dateComponents, repeats: false)
        
        let request = UNNotificationRequest(identifier: identifier.description, content: content, trigger: trigger)
        let center = UNUserNotificationCenter.current()

        }
        
        let currentReviewCount = reviewTimeline[..<nextReviewIndex].lazy.map({ $0.itemCounts.total }).reduce(0, +)
        let expectedReviewNotificationText = notificationText(forCount: currentReviewCount)
        
        if notification.request.content.body != expectedReviewNotificationText {
            os_log("Updating currently-displayed review notification with count %d", type: .debug, currentReviewCount)
            scheduleNotification(body: expectedReviewNotificationText, includeSound: false)
        }
        
        let nextReview = reviewTimeline[nextReviewIndex]
        let nextReviewCount = currentReviewCount + nextReview.itemCounts.total
        let nextReviewNotificationText = notificationText(forCount: nextReviewCount)
        
        os_log("Scheduling next review notification with count %d", type: .debug, nextReviewCount)
        scheduleNotification(body: nextReviewNotificationText, at: nextReview.dateAvailable, includeSound: false)
        
        return true
    }
