@Test public void wrapFuture_futureBecomesUnexpectedFailure() throws Exception {

  CompletableFuture<String> future = new CompletableFuture<>();
  CompletionStage<Maybe<String, MyException>> stage =
      Maybe.catchException(MyException.class, future);
  assertPending(stage);
  RuntimeException exception = new RuntimeException("test");
  future.completeExceptionally(exception);
  assertCauseOf(ExecutionException.class, stage).isSameAs(exception);
}