CardVaultPresenter extends BasePresenter<CardVault.View> implements CardVault.Actions { @Override public void onResultCancel() { getView().cancelCardVault(); } CardVaultPresenter(@NonNull final UserSelectionRepository userSelectionRepository,
        @NonNull final PaymentSettingRepository paymentSettingRepository,
        @NonNull final ESCManagerBehaviour escManagerBehaviour,
        @NonNull final AmountConfigurationRepository amountConfigurationRepository,
        @NonNull final CardTokenRepository cardTokenRepository); @Override void initialize(); @Override void setPaymentRecovery(final PaymentRecovery paymentRecovery); @Override void setCard(@Nullable final Card card); @Override @Nullable Token getToken(); @Override void setToken(final Token mToken); @Override @Nullable PaymentMethod getPaymentMethod(); @Override void setPaymentMethod(final PaymentMethod mPaymentMethod); @Override @Nullable PaymentRecovery getPaymentRecovery(); @Override @Nullable Card getCard(); @Override void setCardInfo(final CardInfo cardInfo); @Override @Nullable CardInfo getCardInfo(); @Override int getCardNumberLength(); @Override void resolveInstallmentsRequest(); @Override void resolveSecurityCodeRequest(); @Override void resolveNewCardRequest(@NonNull final Intent data); @Override void onResultCancel(); @Override void onResultFinishOnError();  }
@Test public void whenFlowCanceledThenFinishFlow() { presenter.onResultCancel(); verify(view).cancelCardVault(); verifyNoMoreInteractions(view); }