@Test
public void testResultNothing1() {

    final AtomicInteger latch = new AtomicInteger(0);
    final Fun.ThrowingConsumer<Integer> consumer = value -> {
        if (value % 3 == 0) {
            throw new Exception("multiples of three are disallowed");
        }
        latch.addAndGet(value);
    };
    final List<Result<Nothing>> results = Stream.generate(new AtomicInteger(0)::incrementAndGet)
            .map(resultNothing1(consumer)).limit(10).collect(Collectors.toList());
    assertEquals("results should have three failures",
            3, results.stream().filter(Result::isFailure).count());
}