@Test
  void buildTask() throws Exception {
    VelocityScheduler scheduler = new VelocityScheduler(new FakePluginManager());
    CountDownLatch latch = new CountDownLatch(1);
    ScheduledTask task = scheduler.buildTask(FakePluginManager.PLUGIN_A, latch::countDown)
        .schedule();
    latch.await();
    assertEquals(TaskStatus.FINISHED, task.status());
  }
@Test
  void buildTask() throws Exception {
    VelocityScheduler scheduler = new VelocityScheduler(new FakePluginManager());
    CountDownLatch latch = new CountDownLatch(1);
    ScheduledTask task = scheduler.buildTask(FakePluginManager.PLUGIN_A, latch::countDown)
        .schedule();
    latch.await();
    assertEquals(TaskStatus.FINISHED, task.status());
  }
@test void buildtask() throws exception { velocityscheduler scheduler = new velocityscheduler(new fakepluginmanager()); countdownlatch latch = new countdownlatch(1); scheduledtask task = scheduler.buildtask(fakepluginmanager.plugin_a, latch::countdown) .schedule(); latch.await(); assertequals(taskstatus.finished, task.status()); }