@Test
public void testUncheck0() {

    final AtomicInteger latch = new AtomicInteger(0);
    final Fun.ThrowingSupplier<Integer> supplier = () -> {
        int newValue = latch.incrementAndGet();
        if (newValue % 3 == 0) {
            throw new Exception("multiples of three are disallowed");
        }
        return newValue;
    };
    Integer[] ints = Stream.generate(uncheck0(supplier)).limit(2).toArray(Integer[]::new);
    assertArrayEquals("ints should contain 1 and 2", new Integer[]{1, 2}, ints);
}