### Question:
ScheduledTasks { @Scheduled(cron = "0 0 0 1 1 ?") public void runBeginOfYear() { try { List<ExecuteInfo> list = taskService.getPendingTaskListById(Task.BeginOfYear.getId()); executeTask(list); } catch (Exception e) { logger.error(e.getMessage(), e); } }  @Scheduled(cron = "0 0 0 1 1 ?") void runBeginOfYear(); @Scheduled(cron = "0 0 23 31 12 ?") void runEndOfYear(); @Scheduled(cron = "0 0 6 ? * MON-FRI") void runBeginOfDay(); @Scheduled(cron = "0 0 22 ? * MON-FRI") void runEndOfDay(); @Scheduled(cron = "0 0 9 ? * MON-FRI") void runUpdateOfStock(); @Scheduled(cron = "0 0 17,18,19 ? * MON-FRI") void runUpdateOfDailyIndex(); @Scheduled(cron = "0,15,30,45 * 9,10,11,13,14 ? * MON-FRI") void runTicker(); @Scheduled(cron = "0 0,20,40 * ? * MON-FRI") void heartbeat();  }### Answer:
@Test public void testRunBeginOfYear() { scheduledTasks.runBeginOfYear(); }