@Test
void sell() {

    final ControlApi control = mock(ControlApi.class);
    final Api<ControlApi> ca = mockApi(control);
    final Zonky z = mockZonkyControl(ca);
    final LoanImpl loan = new LoanImpl();
    loan.setRating(Rating.D);
    final InvestmentImpl investment = new InvestmentImpl(new InvestmentLoanDataImpl(loan), Money.from(200));
    investment.setId(1);
    investment.setPrincipal(new AmountsImpl(Money.from(10)));
    final SellInfoImpl sellInfo = new SellInfoImpl(Money.from(10), Money.from(1));
    investment.setSmpSellInfo(sellInfo);
    z.sell(investment);
    verify(control).offer(any());
}