public Task getTask() throws InterruptedException {
    return queue.take();
  }
@Test
  void testGetTask() throws InterruptedException {
    var taskSet = new TaskSet();
    taskSet.addTask(new Task(100));
    Task task = taskSet.getTask();
    assertEquals(100, task.getTime());
    assertEquals(0, taskSet.getSize());
  }