@Test
void cancel() {

    final ControlApi control = mock(ControlApi.class);
    final Api<ControlApi> ca = mockApi(control);
    final Zonky z = mockZonkyControl(ca);
    final Investment i = new InvestmentImpl(new InvestmentLoanDataImpl(), Money.from(200));
    z.cancel(i);
    verify(control).cancel(eq(i.getId()));
}