private static List<IArticle> getArticleMocks(int size) throws IOException {
        List<IArticle> articles = new ArrayList<>();
        for (int i = 0; i < size; i++) {
            IArticle article = mock(IArticle.class);
            when(article.getName()).thenReturn("Article" + articleNameUniqueIndex++);
            articles.add(article);
        }
        return articles;
    }