SyndicTimelineController syndicTimelineController = new SyndicTimelineController();
ReflectionTestUtils.setField(syndicTimelineController, "timelineService", timelineService);
ReflectionTestUtils.setField(syndicTimelineController, "userService", userService);
ReloadableResourceBundleMessageSource messageSource = new ReloadableResourceBundleMessageSource();
messageSource.setBasename("file:src/main/webapp/WEB-INF/messages/messages");
messageSource.setDefaultEncoding(CharEncoding.UTF_8);
ReflectionTestUtils.setField(syndicTimelineController, "messageSource", messageSource);
this.mockMvc = MockMvcBuilders.standaloneSetup(syndicTimelineController).build();
}