@@ -0,0 +1,1346 @@
+package org.springframework.site.admin.blog;%0A%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0Aimport org.springframework.data.domain.PageRequest;%0Aimport org.springframework.site.blog.BlogService;%0Aimport org.springframework.site.blog.Post;%0Aimport org.springframework.site.blog.PostBuilder;%0Aimport org.springframework.site.blog.admin.BlogAdminController;%0Aimport org.springframework.ui.ExtendedModelMap;%0A%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.equalTo;%0Aimport static org.mockito.Matchers.any;%0Aimport static org.mockito.Mockito.when;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class BlogAdminControllerTests %7B%0A%09private BlogAdminController controller;%0A%0A%09@Mock%0A%09private BlogService blogService;%0A%0A%09@Before%0A%09public void setup() %7B%0A%09%09controller = new BlogAdminController(blogService);%0A%09%7D%0A%0A%09@Test%0A%09public void dashboardShowsUsersPosts() %7B%0A%09%09List%3CPost%3E posts = Collections.singletonList(PostBuilder.post().build());%0A%09%09when(blogService.mostRecentPosts(any(PageRequest.class))).thenReturn(posts);%0A%09%09ExtendedModelMap model = new ExtendedModelMap();%0A%09%09controller.dashboard(model);%0A%09%09assertThat((List%3C Post %3E)model.get(%22myPosts%22), equalTo(posts));%0A%09%7D%0A%7D%0A

fix test filename case