NumericRange implements NameToken { public String next() { if (value < high) value++; return Integer.toString(value); } NumericRange(String range); boolean hasMore(); String next();  }
@Test public void testNext() { for (int i = 1; i <= 100; i++) { assertEquals(Integer.toString(i), range.next()); } }