@Override
  public boolean hasNext() {
    return !pathStack.isEmpty();
  }
@Test
  void hasNextForPopulatedTree() {
    var iter = new BstIterator<>(nonEmptyRoot);
    assertTrue(iter.hasNext(), "hasNext() should return true for populated tree.");
  }