TimelineService { public Collection<StatusDTO> getTimeline(int nbStatus, String start, String finish) { String login = authenticationService.getCurrentUser().getLogin(); return getUserTimeline(login, nbStatus, start, finish); }  StatusDTO getStatus(String statusId); StatusDetails getStatusDetails(String statusId); Collection<StatusDTO> buildStatusList(List<String> line); Collection<StatusDTO> getMentionline(int nbStatus, String start, String finish); Collection<StatusDTO> getTagline(String tag, int nbStatus, String start, String finish); Collection<StatusDTO> getGroupline(String groupId, Integer nbStatus, String start, String finish); Collection<StatusDTO> getTimeline(int nbStatus, String start, String finish); Collection<StatusDTO> getUserTimeline(String login, int nbStatus, String start, String finish); Collection<StatusDTO> getDomainline(int nbStatus, String start, String finish); Collection<StatusDTO> getUserline(String username, int nbStatus, String start, String finish); void removeStatus(String statusId); void shareStatus(String statusId); void addFavoriteStatus(String statusId); void removeFavoriteStatus(String statusId); void announceStatus(String statusId); Collection<StatusDTO> getFavoritesline(); void hideStatus(String statusId);  }
@Test public void shouldGetTimeline() throws Exception { String login = "userWithStatus@ippon.fr"; String username = "userWithStatus"; mockAuthenticationOnTimelineServiceWithACurrentUser(login); Collection<StatusDTO> status = timelineService.getTimeline(10, null, null); assertThatLineForUserWithStatusIsOk(username, status); }