public void promoteLeader() {
    Worker leader = null;
    if (!workers.isEmpty()) {
      leader = workers.get(0);
    }
    this.leader = leader;
  }
@Test
  void testNullLeader() {
    var workCenter = new WorkCenter();
    workCenter.promoteLeader();
    assertNull(workCenter.getLeader());
  }