@Test public void test_refresh() { Long id = 1l; String redirect = rankingController.refresh(id); verify(rankingController.rankingService).refresh(id); assertEquals("redirect:show.do?id=1", redirect); }