+ // this scenario can happen when sones are removed.
+ fun `handler removes post from notification if sone is missing`() {
+ val post = createPost(sone = null)
+ notification.add(post)
+ eventBus.post(PostRemovedEvent(post))
+ assertThat(notification.elements, emptyIterable())
+ }
+
+ @Test