@Test
void investingNoneAccepted() {

    final Loan loan = new MockLoanBuilder()
        .set(LoanImpl::setAmount, Money.from(100_000))
        .set(LoanImpl::setRating, Rating.D)
        .set(LoanImpl::setMyInvestment, mockMyInvestment())
        .set(LoanImpl::setDatePublished, OffsetDateTime.now())
        .build();
    final int loanId = loan.getId();
    final LoanDescriptor ld = new LoanDescriptor(loan);
    final Zonky z = harmlessZonky();
    final PowerTenant tenant = mockTenant(z);
    when(tenant.getInvestmentStrategy()).thenReturn(Optional.of(NONE_ACCEPTING_INVESTMENT_STRATEGY));
    when(z.getLoan(eq(loanId))).thenReturn(loan);
    final InvestingOperationDescriptor d = mockInvestingOperationDescriptor(ld);
    final StrategyExecutor<LoanDescriptor, InvestmentStrategy, Loan> exec = new StrategyExecutor<>(tenant, d);
    assertThat(exec.get()).isEmpty();
}