public void init() throws Exception {
URI mainURI = new URI("http://www.linux.org.ru/", true, "UTF-8");
TopicDao messageDao = mock(TopicDao.class);
Topic message1 = mock(Topic.class);
Group group1 = mock(Group.class);
Topic message2 = mock(Topic.class);
Group group2 = mock(Group.class);
Topic message3 = mock(Topic.class);
Group group3 = mock(Group.class);
Topic message12 = mock(Topic.class);
Group group12 = mock(Group.class);
Topic message15 = mock(Topic.class);
Group group15 = mock(Group.class);
Topic messageHistory = mock(Topic.class);
Group groupHistory = mock(Group.class);
CommentService commentService = mock(CommentService.class);
Comment comment = mock(Comment.class);
when(message1.getTitle()).thenReturn("привет1");
when(message2.getTitle()).thenReturn("привет2");
when(message3.getTitle()).thenReturn("привет3");
when(message12.getTitle()).thenReturn("привет12");
when(message15.getTitle()).thenReturn("привет15");
when(messageHistory.getTitle()).thenReturn("привет история");
when(group1.getUrl()).thenReturn("/news/debian/");
when(group2.getUrl()).thenReturn("/forum/talks/");
when(group3.getUrl()).thenReturn("/forum/general/");
when(group12.getUrl()).thenReturn("/forum/security/");
when(group15.getUrl()).thenReturn("/forum/linux-org-ru/");