@Test
void unknownException() {

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