BlogEntry blogEntry = new BlogEntry(blog);
service.putBlogEntry(blogEntry);
blogEntry = service.getBlogEntry(blog, blogEntry.getId());
for (int i = 0; i < numberOfComments; i++) {
Comment comment = blogEntry.createComment("title", "body"+i, "author", "email", "website", "avatar", "127.0.0.1");
blogEntry.addComment(comment);
}
service.putBlogEntry(blogEntry);
for (Comment comment : blogEntry.getComments()) {
comment.setApproved();
}
service.putBlogEntry(blogEntry);
View view = action.process(request, response);