@Test
public void dashboardShowsUsersPosts() {
controller = new BlogAdminController(blogService, teamRepository, dateFactory);
Page<Post> drafts = new PageImpl<>(
Arrays.asList(new Post("draft post", "body", PostCategory.ENGINEERING)),
PageableFactory.forDashboard(), 1);
Page<Post> scheduled = new PageImpl<>(
Arrays.asList(new Post("scheduled post", "body", PostCategory.ENGINEERING)),
PageableFactory.forDashboard(), 1);
Page<Post> published = new PageImpl<>(
Arrays.asList(new Post("published post", "body", PostCategory.ENGINEERING)),
PageableFactory.forDashboard(), 1);
given(blogService.getPublishedPosts(anyObject())).willReturn(published);
given(blogService.getDraftPosts(anyObject())).willReturn(drafts);
given(blogService.getScheduledPosts(anyObject())).willReturn(scheduled);