Flux<Post> findAll() {
        return Flux.fromIterable(data.values());
    }
@Test
    public void testGetAllPosts() {

        StepVerifier.create(posts.findAll())
                .consumeNextWith(p -> assertEquals("post one", p.getTitle()))
                .consumeNextWith(p -> assertEquals("post two", p.getTitle()))
                .expectComplete()
                .verify();
    }