@Test
public void create() throws ExecutionException, InterruptedException {

    Flowable<Integer> flowable = Flowable.fromArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
            .subscribeOn(Schedulers.computation());
    List<Integer> list = ReactiveStreams.<Integer> failed(new Exception("BOOM"))
            .onErrorResumeWith(t -> ReactiveStreams.fromPublisher(flowable))
            .toList()
            .run().toCompletableFuture().exceptionally(x -> Collections.emptyList()).get();
    assertThat(list).hasSize(10);
}