+ @Test
+ fun `handler adds remote post to new-post notification`() {
+ remotePostHandlerTest.sendEvent(NewPostFoundEvent(remotePost))
+ assertThat(notification.elements, contains(remotePost))
+ }
+
+ @Test
+ fun `handler does not add local post to new-post notification`() {
+ remotePostHandlerTest.sendEvent(NewPostFoundEvent(localPost))
+ assertThat(notification.elements, emptyIterable())