### Question:
PeerTask { @Scheduled(cron = "*/" + KademliaOptions.BUCKET_REFRESH + " * * * * *") public void refresh() { try { peerTableGroup.refresh(); log.debug("refresh(): {}", peerTableGroup.getActivePeerListWithStatus()); } catch (Exception e) { log.warn("refresh() is failed. {}", e.getMessage()); } }  @Autowired void setPeerTableGroup(PeerTableGroup peerTableGroup); @Autowired void setPeerDialer(PeerDialer peerDialer); @Autowired void setListener(CatchUpSyncEventListener listener); @Autowired void setPeerNetwork(PeerNetwork peerNetwork); @Scheduled(initialDelay = NODE_DISCOVERY_INITDELAY, fixedRate = NODE_DISCOVERY_TIME) void healthCheck(); @Scheduled(cron = "*/" + KademliaOptions.BUCKET_REFRESH + " * * * * *") void refresh();  }### Answer:
@Test public void refreshTest() { assertEquals(0, peerTableGroup.getPeerTable(yggdrash).getBucketsCount()); peerTask.refresh(); assertEquals(4, peerTableGroup.getPeerTable(yggdrash).getBucketsCount()); }