HaltonSequence implements Iterator<Double>, Serializable { public boolean hasNext() { return true; } HaltonSequence();  HaltonSequence(int base); boolean hasNext(); Double next(); void remove();  }
@Test public void testHasNext() { HaltonSequence seq = new HaltonSequence(); for (int i = 0; i < 20; i++) { assertTrue(seq.hasNext()); } }