LogController { @RequestMapping(value = {"/log"}) public String get() { log.debug("accessing log page"); return "log"; } @Autowired  LogController(SyncConfigurationManager syncConfigurationManager); @RequestMapping(value = {"/log"}) String get(); @RequestMapping(value = {"/log"}, params = "download") String download(HttpServletResponse response);  }
@Test public void testGet() { replay(); LogController c = new LogController(syncConfigurationManager); String s = c.get(); Assert.assertNotNull(s); }