+ @Test
+ fun `handler removes sone from notification if sone is marked as known`() {
+ eventBus.post(NewSoneFoundEvent(sone))
+ val notification = notificationManager.notifications.single() as ListNotification<*>
+ eventBus.post(MarkSoneKnownEvent(sone))
+ assertThat(notification.elements, emptyIterable())
+ }
+
+ @Test
+ fun `handler removes sone from notification if sone is removed`() {
+ eventBus.post(NewSoneFoundEvent(sone))
+ val notification = notificationManager.notifications.single() as ListNotification<*>
+ eventBus.post(SoneRemovedEvent(sone))
+ assertThat(notification.elements, emptyIterable())
+ }
+