public static RemoteIterator<Long> rangeExcludingIterator(
      final long start, final long excludedFinish) {
    return new RangeExcludingLongIterator(start, excludedFinish);
  }
@Test
  public void testRangeExcludingIterator() throws Throwable {
    verifyInvoked(rangeExcludingIterator(0, 0), 0);
    verifyInvoked(rangeExcludingIterator(0, -1), 0);
    verifyInvoked(rangeExcludingIterator(0, 100), 100);
    intercept(NoSuchElementException.class, () ->
        rangeExcludingIterator(0, 0).next());
  }