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

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