ArticleService { public Mono<Integer> countWords(String articleName) { return getParsedArticle(articleName) .map(countService::countWords); } @Autowired  ArticleService(WikiService wikiService, CountService countService, RatingService ratingService,
                          @Value("${article.cache.size}") int cacheSize); Mono<String> fetchArticle(String articleName); Mono<Integer> rate(String articleName); Mono<Integer> countWords(String articleName);  }
@Test public void countWords() throws Exception { StepVerifier.create(articleService.countWords(EIGENWERT_ARTICLE.getName())) .expectNext(2) .verifyComplete(); }