@Test
void nullException() {

    assertThat(InvestmentResult.failure(null))
        .matches(r -> !r.isSuccess())
        .matches(r -> r.getFailureType()
            .isPresent() &&
                r.getFailureType()
                    .get() == UNKNOWN);
}