### Question:
SamplingLongPrimitiveIterator extends AbstractLongPrimitiveIterator { @Override public boolean hasNext() { return hasNext; } SamplingLongPrimitiveIterator(RandomGenerator random, LongPrimitiveIterator delegate, double samplingRate); @Override boolean hasNext(); @Override long nextLong(); @Override void remove(); @Override void skip(int n);  }### Answer:
@Test public void testSample3() { RandomGenerator random = RandomManager.getRandom(); LongSet set = new LongSet(); set.addAll(new long[] {1,2,4,7,15}); Iterator<?> sampling = new SamplingLongPrimitiveIterator(random, set.iterator(), 0.0001); assertFalse(sampling.hasNext()); }