@Test
public void testForEach() {

    final CompletableFuture<String> slotSuccess = new CompletableFuture<>();
    Result.success("success").forEach(slotSuccess::complete);
    assertEquals("success does do", "success", slotSuccess.getNow(null));
    final CompletableFuture<String> slotFailure = new CompletableFuture<>();
    Result.<String>failure("failure").forEach(slotFailure::complete);
    assertFalse("failure doesn't do", slotFailure.isDone());
}